libMesh
|
Spin mutex. More...
#include <threads_none.h>
Classes | |
class | scoped_lock |
Public Member Functions | |
spin_mutex () | |
void | lock () |
void | unlock () |
spin_mutex () | |
~spin_mutex ()=default | |
void | lock () |
void | unlock () |
spin_mutex () | |
~spin_mutex ()=default | |
void | lock () |
void | unlock () |
spin_mutex () | |
~spin_mutex () | |
void | lock () |
void | unlock () |
Private Attributes | |
os_unfair_lock | ulock |
OSSpinLock | slock |
pthread_spinlock_t | slock |
Spin mutex.
Implements mutual exclusion by busy-waiting in user space for the lock to be acquired.
Definition at line 127 of file threads_none.h.
|
inline |
Definition at line 130 of file threads_none.h.
|
inline |
|
default |
|
inline |
Definition at line 115 of file threads_pthread.h.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 131 of file threads_none.h.
Referenced by libMesh::Threads::spin_mutex::scoped_lock::acquire(), libMesh::Threads::lock_singleton_spin_mutex(), and libMesh::Threads::spin_mutex::scoped_lock::scoped_lock().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 132 of file threads_none.h.
Referenced by libMesh::Threads::spin_mutex::scoped_lock::release(), and libMesh::Threads::unlock_singleton_spin_mutex().
|
inline |
|
private |
Definition at line 137 of file threads_pthread.h.
Referenced by lock(), spin_mutex(), unlock(), and ~spin_mutex().
|
private |
Definition at line 167 of file threads_pthread.h.
|
private |
Definition at line 109 of file threads_pthread.h.
Referenced by lock(), spin_mutex(), and unlock().