proxygen
InitLock< Lock > Class Template Reference

Public Member Functions

 InitLock ()
 
void lock ()
 
void unlock ()
 

Private Attributes

Lock lock_
 

Detailed Description

template<typename Lock>
class InitLock< Lock >

Definition at line 86 of file SmallLocksBenchmark.cpp.

Constructor & Destructor Documentation

template<typename Lock >
InitLock< Lock >::InitLock ( )
inline

Definition at line 90 of file SmallLocksBenchmark.cpp.

90  {
91  lock_.init();
92  }

Member Function Documentation

template<typename Lock >
void InitLock< Lock >::lock ( )
inline

Definition at line 93 of file SmallLocksBenchmark.cpp.

93  {
94  lock_.lock();
95  }
template<typename Lock >
void InitLock< Lock >::unlock ( )
inline

Definition at line 96 of file SmallLocksBenchmark.cpp.

96  {
97  lock_.unlock();
98  }

Member Data Documentation

template<typename Lock >
Lock InitLock< Lock >::lock_
private

Definition at line 87 of file SmallLocksBenchmark.cpp.


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