ID : 5161
GiveMutex
Function
To set the status of Mutex object to "Unlocked."
Syntax
GiveMutex MutexID
Guaranteed entry
- MutexID
- Designate the ID of Mutex object by integer type data.
Description
Set the designated Mutex object's status to "Unlocked."
Only the task which set to "Locked" by TakeMutex statement can set Mutex object to "Unlocked."
Related Terms
Mutex Object, CreateMutex, DeleteMutex, TakeMutex, GiveMutex, ResetMutex, MutexID, MutexState, Program Example 1 for Exclusion Control, Program Example 2 for Exclusion Control, Program Example 3 for Exclusion Control
Attention
Example
Sub Main
Dim n As Integer
n = CreateMutex(S[10])
TakeMutex n
' Statements
GiveMutex n
DeleteMutex n
End Sub
ID : 5161