$extrastylesheet
#include <threads.h>
Classes | |
| class | scoped_lock |
Public Member Functions | |
| recursive_mutex () | |
| ~recursive_mutex () | |
| void | lock () |
| void | unlock () |
| recursive_mutex () | |
Private Attributes | |
| pthread_mutex_t | mutex |
| pthread_mutexattr_t | attr |
Recursive mutex. Implements mutual exclusion by busy-waiting in user space for the lock to be acquired.
| libMesh::Threads::recursive_mutex::recursive_mutex | ( | ) | [inline] |
| libMesh::Threads::recursive_mutex::~recursive_mutex | ( | ) | [inline] |
| libMesh::Threads::recursive_mutex::recursive_mutex | ( | ) | [inline] |
| void libMesh::Threads::recursive_mutex::lock | ( | ) | [inline] |
Definition at line 410 of file threads.h.
References mutex.
Referenced by libMesh::Threads::recursive_mutex::scoped_lock::acquire(), and libMesh::Threads::recursive_mutex::scoped_lock::scoped_lock().
{ pthread_mutex_lock(&mutex); }
| void libMesh::Threads::recursive_mutex::unlock | ( | ) | [inline] |
Definition at line 411 of file threads.h.
References mutex.
Referenced by libMesh::Threads::recursive_mutex::scoped_lock::release().
{ pthread_mutex_unlock(&mutex); }
pthread_mutexattr_t libMesh::Threads::recursive_mutex::attr [private] |
Definition at line 430 of file threads.h.
Referenced by recursive_mutex().
pthread_mutex_t libMesh::Threads::recursive_mutex::mutex [private] |
Definition at line 429 of file threads.h.
Referenced by lock(), recursive_mutex(), unlock(), and ~recursive_mutex().