
3 Nov
2010
3 Nov
'10
1:32 p.m.
Chris wrote: [...]
but the main thread doesn't stop at boost::recursive_mutex::scoped_lock lock(io_mutex);
How should I implement it then? not using recursive_mutex?
I'd go for a barrier or condition variable(s) instead. A mutex is best suited locking/exclusion, not waiting for a condition. -- Best regards, Martin Dyring-Andersen