#include <mutex.h>
Public Member Functions | |
| mutex () | |
| Construct unacquired mutex. | |
| void | lock () |
| Acquire lock. | |
| bool | try_lock () |
| Try acquiring lock (non-blocking). | |
| void | unlock () |
| Release lock. | |
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 |
Classes | |
| class | scoped_lock |
| The scoped locking pattern. More... | |
For testing purposes only.
| bool tbb::mutex::try_lock | ( | ) | [inline] |
Try acquiring lock (non-blocking).
Return true if lock acquired; false otherwise.