ID : 5162
ResetMutex
Function
To clear an error of Mutex object.
Syntax
ResetMutex MutexID
Guaranteed entry
- MutexID
- Designate the ID of Mutex object by integer type data.
Description
Clear an error of Mutex object.
Related Terms
Mutex Object, CreateMutex, DeleteMutex, TakeMutex, GiveMutex, ResetMutex, MutexID, MutexState, Program Example 3 for Exclusion Control
Attention
Example
Sub Main
Dim n As Integer
n = CreateMutex(S[10])
On Error GoTo Label1
TakeMutex n
On Error GoTo 0
' Statements
GiveMutex n
DeleteMutex n
Exit Sub
Label1:
'Process for an error
ResetMutex n
Resume
End Sub
ID : 5162