sentinel |
This templatized class provides
synchronized access to guarded objects in a multithreaded environment. In
addition, os_sentinel can provide change
notification to blocked threads when the guarded object is modified. Change
detection occurs when the guarded object is released from a lock and does not
incur the overhead of a true comparison operation.
Throws: os_thread_toolkit_error
Throws: os_thread_toolkit_error
notify()
has no effect if there are no threads waiting. The calling thread must own
the lock associated with the sentinel when calling this member function to
provide predictable scheduling of awakened threads and to guarantee proper
internal synchronization. The behavior of this member function is undefined
if the calling thread does not own the lock. Throws: os_thread_toolkit_error
notify() ,
but then releases the lock afterwards. Throws: os_thread_toolkit_error
Throws: os_thread_toolkit_error
false
if it fails to acquire a lock immediately. Throws: os_thread_toolkit_error
Throws: os_thread_toolkit_error
observe()
; alternative event syntax.Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.