threadlocked_returns_current_execution_thread_locked_state_.htm
Navigation: Language Reference > 13 - Built-in Functions >====== THREADLOCKED (returns current execution thread locked state) ====== | |
THREADLOCKED()
The THREADLOCKED procedure returns the current execution thread's locked/unlocked state. It returns zero (0) if the thread is unlocked and one (1) if the thread is locked.
Return Data Type: SIGNED
Example:
X# = THREADLOCKED() !Returns 1
UNLOCKTHREAD !Unlock the thread
X# = THREADLOCKED() !Returns 0
MyLibraryCodeWithMessageLoop !Call the code that has its own message loop
LOCKTHREAD !Re-lock the thread
See Also:
threadlocked_returns_current_execution_thread_locked_state_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1