ID : 5163
MutexID
Function
To return the ID of Mutex object.
Syntax
MutexID(MutexName)
Guaranteed entry
- MutexName
- Designate the name of Mutex object by string type data.
Return value
Return the ID of Mutex object by integer type data.
Description
Return the ID of Mutex object.
If there is no Mutex object with the designated MutexName, -1 will be returned.
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 = MutexID(S[10])
If n = -1 Then Exit Sub
TakeMutex n
' Statements
GiveMutex n
End Sub
ID : 5163