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

Detailed Description

Definition at line 50 of file mutex.h.

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

Public Member Functions

 mutex ()
 construct unlocked mutex More...
 
 ~mutex () noexcept(false)
 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 57 of file mutex.h.

References STXXL_CHECK_PTHREAD_CALL.

stxxl::mutex::~mutex ( )
inlinenoexcept

destroy mutex handle

Definition at line 62 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 81 of file mutex.h.

References STXXL_CHECK_PTHREAD_CALL.

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

return platform specific handle

Definition at line 91 of file mutex.h.

void stxxl::mutex::unlock ( )
inline

unlock mutex

Definition at line 86 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 53 of file mutex.h.


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