#include <spin_mutex.h>
Public Member Functions | |
| scoped_lock () | |
| Construct without acquiring a mutex.  | |
| scoped_lock (spin_mutex &m) | |
| Construct and acquire lock on a mutex.  | |
| void | acquire (spin_mutex &m) | 
| Acquire lock.  | |
| bool | try_acquire (spin_mutex &m) | 
| Try acquiring lock (non-blocking).   | |
| void | release () | 
| Release lock.  | |
| ~scoped_lock () | |
| Destroy lock. If holding a lock, releases the lock first.  | |
Friends | |
| class | spin_mutex | 
| bool tbb::spin_mutex::scoped_lock::try_acquire | ( | spin_mutex & | m | ) |  [inline] | 
        
Try acquiring lock (non-blocking).
Return true if lock acquired; false otherwise.