proxygen
Locker 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 428 of file SharedMutexTest.cpp.

Member Function Documentation

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

Definition at line 430 of file SharedMutexTest.cpp.

Referenced by runMixed().

430  {
431  lockable->lock();
432  }
template<typename T >
void Locker::lock_shared ( T lockable)
inline

Definition at line 440 of file SharedMutexTest.cpp.

Referenced by runContendedReaders(), and runMixed().

440  {
441  lockable->lock_shared();
442  }
template<typename T >
void Locker::unlock ( T lockable)
inline

Definition at line 435 of file SharedMutexTest.cpp.

Referenced by runMixed().

435  {
436  lockable->unlock();
437  }
template<typename T >
void Locker::unlock_shared ( T lockable)
inline

Definition at line 445 of file SharedMutexTest.cpp.

Referenced by runContendedReaders(), and runMixed().

445  {
446  lockable->unlock_shared();
447  }

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