Downplayed: Alice only does this very, very rarely, as a last resort. And only for something she really feels is important.
Justified: Alice and Bob are not exactly in a healthy relationship.
Bob withholds sex from Alice until she paints the garage.
Alternatively, Alice has sex with Bob until he paints the garage. (In all fairness to Alice, Bob did paint it a particularly hideous shade of pea green.)
Alternatively alternatively, Alice offers to have sex with Bob if he paints the garage.
Subverted: Bob does not mind masturbating.
Double Subverted: ...but it isn't long before he wants sex with a real woman and caves.
There is a town down the road where all transactions are conducted with one party holding back a resource until the second party acquieses.
Alice pulls this trope in an attempt to make Bob suffer. Turns out Alice suffers even more than Bob. Bob ends up painting the garage to take pity on Alice.
Alice caves, but Bob stands firm. Two days later, Bob is weakening but Alice has strengthened her resolve. Eventually Alice is threatening to paint the garage herself unless Bob doesn't have sex with her.
Alice considers the idea then decides it's demeaning for both parties.
Alice never got this idea.
Enforced: "There had to be a reason why the attractive, married Alice is a Celibate Hero."
Lampshaded: "This is one of them Lysisses plots, isn't it?"
Invoked: Alice reads the play and reasons that her self-control is strong enough to pull it off successfully.
"If you want Bob to paint the garage, have you considered not having sex with him until he does it?" "What do I look like, a whore?"