SyncUnlock Statement
Unlocks a sync ID that was previously locked with SyncLock.
Syntax
SyncUnlock syncID
Parameters
- signalNumber
- Specify the signal number to receive (an integer from 1 to 63) as an expression or numeric value.
Description
Use SyncUnlock to unlock a sync ID previously locked with SyncLock.
A task can only unlock a syncID that it previously locked.
See Also
Signal, SyncLock, Wait, WaitPos
SyncUnlock Statement Example
Function Main
Xqt task
Xqt task
Xqt task
Xqt task
Fend
Function task
Do
SyncLock 1
Print "resource 1 is locked by task", MyTask
Wait .5
SyncUnlock 1
Loop
Fend