STXXL  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::mutex Class Reference

Detailed Description

Definition at line 47 of file mutex.h.

+ Inheritance diagram for stxxl::mutex:
+ Collaboration diagram for stxxl::mutex:

Public Member Functions

 mutex ()
 construct unlocked mutex More...
 
 ~mutex ()
 destroy mutex handle More...
 
void lock ()
 lock mutex, may block More...
 
pthread_mutex_t & native_handle ()
 return platform specific handle More...
 
void unlock ()
 unlock mutex More...
 

Private Attributes

pthread_mutex_t m_mutex
 mutex handle More...
 

Additional Inherited Members

- Private Member Functions inherited from stxxl::noncopyable
 noncopyable ()
 

Constructor & Destructor Documentation

stxxl::mutex::mutex ( )
inline

construct unlocked mutex

Definition at line 54 of file mutex.h.

References STXXL_CHECK_PTHREAD_CALL.

stxxl::mutex::~mutex ( )
inline

destroy mutex handle

Definition at line 59 of file mutex.h.

References STXXL_CHECK_PTHREAD_CALL, and STXXL_THROW_ERRNO2.

Member Function Documentation

void stxxl::mutex::lock ( )
inline

lock mutex, may block

Definition at line 77 of file mutex.h.

References STXXL_CHECK_PTHREAD_CALL.

pthread_mutex_t& stxxl::mutex::native_handle ( )
inline

return platform specific handle

Definition at line 87 of file mutex.h.

void stxxl::mutex::unlock ( )
inline

unlock mutex

Definition at line 82 of file mutex.h.

References STXXL_CHECK_PTHREAD_CALL.

Member Data Documentation

pthread_mutex_t stxxl::mutex::m_mutex
private

mutex handle

Definition at line 50 of file mutex.h.


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