condition_mutex |
To ensure that a shared resource, specifically a condition variable, can only be accessed by one thread at a time, use a condition mutex semaphore. Depending upon the underlying platform, the lock attempt will fail or the thread will deadlock if it tries to obtain a mutex that it already owns.
Thread<ToolKit>
#include <ospace/thread/cmutex.h>
class os_condition_mutex
false ) state.Throws: os_thread_toolkit_error
Throws: os_thread_toolkit_error
lock() ;
alternative acquisition syntax.Throws: os_thread_toolkit_error
unlock()
; alternative acquisition syntax.Throws: os_thread_toolkit_error
true if successful.Throws: os_thread_toolkit_error
Throws: os_thread_toolkit_error
Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.