Wrapper around the platform's native reader-writer lock. More...
#include <mutex.h>
Classes | |
| class | scoped_lock | 
| The scoped locking pattern.  More... | |
Public Types | |
| enum | state_t { INITIALIZED =0x1234, DESTROYED =0x789A, HELD =0x56CD } | 
| typedef LPCRITICAL_SECTION | native_handle_type | 
| Return native_handle.  | |
| typedef pthread_mutex_t * | native_handle_type | 
Public Member Functions | |
| mutex () | |
| Construct unacquired mutex.  | |
| void | lock () | 
| Acquire lock.  | |
| bool | try_lock () | 
| Try acquiring lock (non-blocking)  More... | |
| void | unlock () | 
| Release lock.  | |
| native_handle_type | native_handle () | 
| void | set_state (state_t to) | 
| Set the internal state.  | |
Static Public Attributes | |
| static const bool | is_rw_mutex = false | 
| static const bool | is_recursive_mutex = false | 
| static const bool | is_fair_mutex = false | 
Friends | |
| class | scoped_lock | 
Wrapper around the platform's native reader-writer lock.
For testing purposes only.
      
  | 
  inline | 
Try acquiring lock (non-blocking)
Return true if lock acquired; false otherwise.
References tbb::aligned_space< T, N >::begin().
Referenced by tbb::mutex::scoped_lock::try_acquire().