proxygen
EnterLocker Struct Reference

Public Member Functions

template<typename T >
void lock (T *lockable)
 
template<typename T >
void unlock (T *lockable)
 
template<typename T >
void lock_shared (T *lockable)
 
template<typename T >
void unlock_shared (T *lockable)
 

Detailed Description

Definition at line 450 of file SharedMutexTest.cpp.

Member Function Documentation

template<typename T >
void EnterLocker::lock ( T lockable)
inline

Definition at line 452 of file SharedMutexTest.cpp.

452  {
453  lockable->lock(0);
454  }
template<typename T >
void EnterLocker::lock_shared ( T lockable)
inline

Definition at line 462 of file SharedMutexTest.cpp.

462  {
463  lockable->enter(0);
464  }
template<typename T >
void EnterLocker::unlock ( T lockable)
inline

Definition at line 457 of file SharedMutexTest.cpp.

457  {
458  lockable->unlock();
459  }
template<typename T >
void EnterLocker::unlock_shared ( T lockable)
inline

Definition at line 467 of file SharedMutexTest.cpp.

467  {
468  lockable->leave();
469  }

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