#include <thread.h>
Definition at line 17 of file thread.h.
◆ Lock()
Lock::Lock |
( |
bool |
rec = false | ) |
|
|
inline |
◆ ~Lock()
Definition at line 43 of file thread.h.
43 {
44 pthread_mutex_destroy(&
mutex);
45 }
◆ break_lock()
◆ is_locked()
◆ lock()
Definition at line 46 of file thread.h.
46 {
47 Thread self = pthread_self();
51 }
52 else
53 pthread_mutex_lock(&
mutex);
56 }
void ThreadError(const char *message)
◆ resume_lock()
void Lock::resume_lock |
( |
int |
l | ) |
|
|
inlineprivate |
Definition at line 24 of file thread.h.
24 {
25 owner = pthread_self();
27 }
◆ unlock()
Definition at line 57 of file thread.h.
57 {
59 Thread self = pthread_self();
65 pthread_mutex_unlock(&
mutex);
66 }
67 }
◆ ConditionVariable
◆ locked
◆ mutex
pthread_mutex_t Lock::mutex |
|
private |
◆ owner
◆ recursive
The documentation for this class was generated from the following file:
- Singular/dyn_modules/systhreads/thread.h