27.06.2011, 05:48
Quote:
Edit: Actually, I just looked at the code to see what LockThread does and the simple answer is nothing! In fact worse than nothing - pointless loops I can't find the use of wasting time... If the code did what you think it does (which it doesn't) then it would create a mutex, but not actually turn it on, which makes the whole process pointless.
|
Код:
boost::mutex::scoped_lock * lock = new boost::mutex::scoped_lock( (* i).second->mutex ) ;