
1 Apr
2013
1 Apr
'13
11:22 p.m.
AMDG On 04/01/2013 04:12 PM, Michael Powell wrote:
Hello,
The pattern goes something like this: boost::lock_guard<mytype> guard(*this).
However, compiler is asking for a lock or unlock. I don't know what this is, or what it should be.
You can't lock an arbitrary object. You can only lock a mutex. If you really want to make an object act like a mutex, see http://www.boost.org/doc/libs/1_53_0/doc/html/thread/synchronization.html#th... In Christ, Steven Watanabe