¡@

Home 

c++ Programming Glossary: csinglelock

Disallowing creation of the temporary objects

http://stackoverflow.com/questions/914861/disallowing-creation-of-the-temporary-objects

I finally located the problem in this statement CSingleLock m_criticalSection TRUE Notice that it is creating an unnamed.. TRUE Notice that it is creating an unnamed object of CSingleLock class and hence the critical section object gets unlocked immediately.. make a similar mistake take out a lock if m_multiThreaded CSingleLock c m_criticalSection TRUE do other stuff assuming lock is held..