
4 Apr
2011
4 Apr
'11
2:36 p.m.
You used the *same* lock to lock & unlock the mutex in different threads, each thread should use its own lock.
I didn't realize I was doing that wrong. I usually use lock_guards, which are used inside functions, Then, I have a lock for every thread. This way I just have one lock for all threads. That was the problem. Thank you.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users