|
Rapicorn - Experimental UI Toolkit - Source Code
13.07.0
|
The Spinlock uses low-latency busy spinning to acquire locks. More...
#include <thread.hh>
Public Types | |
| typedef pthread_spinlock_t * | native_handle_type |
Public Member Functions | |
| void | lock () |
| void | unlock () |
| bool | try_lock () |
| native_handle_type | native_handle () |
| Spinlock (const Spinlock &) | |
| Mutex & | operator= (const Spinlock &) |
The Spinlock uses low-latency busy spinning to acquire locks.
This class is a thin wrapper around pthread_spin_lock() and related functions. This class supports static construction.
1.7.6.1