ID : 5159
DeleteMutex
Function
To request the deletion of Mutex object.
Syntax
DeleteMutex MutexID
Guaranteed entry
- MutexID
- Designate the ID of Mutex object by integer type data.
Description
Request the deletion of Mutex object with the designated MutexID to the system.
If a registered reference in the designated Mutex object includes only own task, the object will be deleted.
If a registered reference in the designated Mutex object includes own task and more, reference of own task will be deleted.
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 : 5159