|
|
Invisible wrote:
> My point is, you can't just go "I've got lock 7 and lock 13, and now I
> need lock 2, so I'll just release lock 7 and lock 13, then take lock 2
> and take back lock 7 and lock 13". In between releasing the locks and
> taking them back, something could change. You need a better plan than
> that.
Isn't this what a mutex (like it is implemented in the Linux kernel) is for?
Wik it a bit, I think it might be a partial answer to your original
question... :)
--
Stefan Viljoen
Post a reply to this message
|
|