|
Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
|
A mutual exclusion class.
#include <ThreadLib.h>
Inherits ThreadMutexBase.
Public Member Functions | |
| ThreadMutex () | |
| Initialize target mutex resources (C: ThreadMutex_constructor). More... | |
| ~ThreadMutex () | |
| Release target resources after all owners and waiters have stopped (C: ThreadMutex_destructor). More... | |
| void | set () |
| Wait until the mutex can be acquired (C: ThreadMutex_set). More... | |
| void | release () |
| Release a mutex owned by this thread (C: ThreadMutex_release). More... | |
| bool | isOwner () |
| ThreadMutex::ThreadMutex | ( | ) |
Initialize target mutex resources (C: ThreadMutex_constructor).
Resource-failure handling is port-specific; no status is returned.
| ThreadMutex::~ThreadMutex | ( | ) |
Release target resources after all owners and waiters have stopped (C: ThreadMutex_destructor).
Do not destroy a locked/in-use mutex.
| bool ThreadMutex::isOwner | ( | ) |
| void ThreadMutex::release | ( | ) |
Release a mutex owned by this thread (C: ThreadMutex_release).
Calling from another thread or without acquisition is incorrect usage.
| void ThreadMutex::set | ( | ) |
Wait until the mutex can be acquired (C: ThreadMutex_set).
Do not recursively acquire it; portability requires one matching release.