As the description suggests, it generally refers to male masturbation.

I spent half the day, at work, in a cubicle in the toilets; fantasizing about rough sex with my boss, while having one off the wrist. Eventually I had to move to another cubicle when the toilet roll ran out.