#include <winstl/synch/thread_mutex.hpp>

Public Types | |
| typedef thread_mutex | class_type | 
| This type.   | |
Public Member Functions | |
| thread_mutex () throw () | |
| Creates an instance of the mutex.   | |
| thread_mutex (ws_dword_t spinCount) throw () | |
| Creates an instance of the mutex and sets its spin count.   | |
| ~thread_mutex () throw () | |
| Destroys an instance of the mutex.   | |
| void | lock () throw () | 
| Acquires a lock on the mutex, pending the thread until the lock is aquired.   | |
| bool | try_lock () | 
| Attempts to lock the mutex.   | |
| void | unlock () throw () | 
| Releases an aquired lock on the mutex.   | |
| ws_dword_t | set_spin_count (ws_dword_t spinCount) throw () | 
| Sets the spin count for the mutex.   | |
| typedef thread_mutex class_type | 
This type.
| thread_mutex | ( | ) |   throw () [inline] | 
        
Creates an instance of the mutex.
| thread_mutex | ( | ws_dword_t | spinCount | ) |   throw () [inline] | 
        
Creates an instance of the mutex and sets its spin count.
| spinCount | The new spin count for the mutex | 
| ~thread_mutex | ( | ) |   throw () [inline] | 
        
Destroys an instance of the mutex.
| void lock | ( | ) |   throw () [inline] | 
        
Acquires a lock on the mutex, pending the thread until the lock is aquired.
| bool try_lock | ( | ) |  [inline] | 
        
Attempts to lock the mutex.
| void unlock | ( | ) |   throw () [inline] | 
        
Releases an aquired lock on the mutex.
| ws_dword_t set_spin_count | ( | ws_dword_t | spinCount | ) |   throw () [inline] | 
        
Sets the spin count for the mutex.
| spinCount | The new spin count for the mutex | 
 1.5.6