CARMA C++
carma::util::ScopedExclusiveLockManager< L > Class Template Reference

Scoped manager class for exclusive PthreadRWLock locks. More...

#include <carma/util/ScopedExclusiveLockManager.h>

Public Member Functions

void lock ()
 
 ScopedExclusiveLockManager (L &l)
 
bool tryLock ()
 
void unlock ()
 

Detailed Description

template<typename L>
class carma::util::ScopedExclusiveLockManager< L >

Scoped manager class for exclusive PthreadRWLock locks.

Can be used for any type lock provided the following functions are defined for those locks. void exclusiveLock( LockType & ); void tryExclusiveLock( LockType & ); void exclusiveUnlock( LockType & );

Copied entirely from Andy Beard's ScopedSharedLockManager.

See Also
carma::util::PthreadRWLock
carma::util::ScopedExclusiveLock

Definition at line 25 of file ScopedExclusiveLockManager.h.


The documentation for this class was generated from the following file: