HLIBpro  2.1
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