lock_mutexπ
Short descriptionπ
lock_mutex β Lock a mutex synchronization object.
Signatureπ
lock_mutex( mutex MutexHandle )
Descriptionπ
lock_mutex locks the mutex given by MutexHandle. If the
mutex is currently unlocked, it becomes locked and owned by the calling
thread, and lock_mutex returns immediately. If the mutex is
already locked by another thread, the calling thread waits until the mutex
is unlocked. The kind of wait is defined by the mutexβ attributes set during
creation in create_mutex.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersπ
MutexHandle (input_control) mutex β (handle)
Mutex synchronization object.
Resultπ
If the mutex handle is valid, the operator lock_mutex returns 2 (H_MSG_TRUE).
If necessary, an exception is raised.
Combinations with other operatorsπ
Combinations
Possible predecessors
Possible successors
See also
Moduleπ
Foundation