proxygen
TokenLocker 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)
 

Public Attributes

SharedMutexToken token
 

Detailed Description

Definition at line 404 of file SharedMutexTest.cpp.

Member Function Documentation

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

Definition at line 408 of file SharedMutexTest.cpp.

408  {
409  lockable->lock();
410  }
template<typename T >
void TokenLocker::lock_shared ( T lockable)
inline

Definition at line 418 of file SharedMutexTest.cpp.

418  {
419  lockable->lock_shared(token);
420  }
SharedMutexToken token
template<typename T >
void TokenLocker::unlock ( T lockable)
inline

Definition at line 413 of file SharedMutexTest.cpp.

413  {
414  lockable->unlock();
415  }
template<typename T >
void TokenLocker::unlock_shared ( T lockable)
inline

Definition at line 423 of file SharedMutexTest.cpp.

423  {
424  lockable->unlock_shared(token);
425  }
SharedMutexToken token

Member Data Documentation

SharedMutexToken TokenLocker::token

Definition at line 405 of file SharedMutexTest.cpp.


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