Having a wank, a shit, and crying at the same time.
This an expansion of "cranking" which is crying and wanking at the same time.
He had just broken up with his missus, but had also eaten a fuck-tonne of prunes an hour beforehand. He was also horny, and too grief-stricken to walk, so he lay in bed and had a shrank.