HLIBpro  2.0
Public Member Functions | List of all members
TScopedLock Class Reference

Provides automatic lock and unlock for mutices.

#include <TMutex.hh>

Public Member Functions

 TScopedLock (TMutex &m)
 ctor: lock mutex
 
 TScopedLock (TLockable &m)
 ctor: lock lockable object
 
 ~TScopedLock ()
 dtor: unlock mutex