Boost logo

Boost :

From: jsiek_at_[hidden]
Date: 2000-08-11 17:07:21


William Kempf writes:
> Your code did give me an idea, however. I've been trying to figure
> out how you could tie the CV to the mutex and also require the mutex
> to be locked before calling wait. Well, you could pass the mutex in
> to the CVs constructor for the first part, and place the wait()
> method in the lock, passing in the CV, for the second part. We'll
> still have some pretty tight coupling in my mind with the lock
> needing to be a friend of the mutex and the CV a friend of the lock,
> but it seems "solid" to me at this point.

I have trouble understanding english (even though that's my native
lang). I understand C++ much better :) Code examples please!

Cheers,

Jeremy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk