23 Dec
2004
23 Dec
'04
1:50 p.m.
Amerio wrote:
I thought about this, too. Yet, the boost doc says that wait() will UNLOCK then RELOCK the mutex. Couldn't it be that in between someone else take the lock ? The doc is quite fuzzy around this...
This is the _key_ point of condvar mutex use. Because it is guaranteed noone else can go in between it is by no means easy to implement it e.g. on the windows platform. Luckily however some clever guys have solved this problem. :-) Again, I highly recommend to get a book on pthreads. You will find a lot of useful information which also applies to boost threads. Roland