A Brisbane woman stabbed a male friend twice in the shower after he refused to stop masturbating in front of her children.

Defence lawyers for Kylie Louise Wilson, 28, said the mother of two "lost it" when her friend of six years, Daniel Peter Blair, went on a masturbation marathon on April 6 last year.

Brisbane's District Court this morning heard Mr Blair had showed up at Wilson's unit at Birkdale unit, in Redland Shire, where he took amphetamines before having a shower.

Whilst in the bathroom, Mr Blair, 32, began pleasuring himself, before moving to Wilson's bedroom, where he rolled around naked on her bed and continued his lewd conduct.

He returned to the bathroom for more and was busted by Wilson, who was attempting to bath her three-and-a-half year-old daughter.

The court heard Mr Blair refused her repeated requests to stop, prompting her to fetch a knife from the kitchen which she used to stab him twice in the left shoulder.

Crown prosecutors said Mr Blair paused only to put on his shorts and flee outside to wait for police to arrive, but was again overcome by the urge.

"Despite his injury, it seems (Mr Blair) continued to masturbate while in the garage," the prosecutor said.

Police took him to hospital where he received treatment for the minor stab wounds.

Wilson pleaded guilty to one count each of unlawful wounding and wilful damage.

Her defence barrister, Mark Johnson, said Wilson regarded Mr Blair as a "tolerably decent person" when he was not using drugs, but had become "extremely protective" of her daughter under the circumstances.

"He was in and out and round about, doing this sort of thing all over the house, " Mr Johnson said.

"She just lost it, to put it crudely."

Senior Judge Gilbert Trafford Walker accepted the Crown's submission that Wilson had been subjected to "grossly offensive conduct ... which in a moral sense amounts to extreme provocation."

He sentenced her to nine months' jail but ordered that she be immediately released on parole.