User Tools

Site Tools


lockthread_re_lock_the_current_execution_thread_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== LOCKTHREAD (re-lock the current execution thread) ====== Previous pageReturn to chapter overviewNext page

LOCKTHREAD

blk2blue.jpg

The LOCKTHREAD statement re-locks the current execution thread that has been unlocked with the UNLOCKTHREAD statement.

The THREADLOCKED() procedure determines whether the thread has been unlocked or not.

Example:

UNLOCKTHREAD                   !Unlock the thread

MyLibraryCodeWithMessageLoop   !Call the code that has its own message loop

LOCKTHREAD                     !Re-lock the thread

See Also:

ACCEPT

UNLOCKTHREAD

THREADLOCKED

lockthread_re_lock_the_current_execution_thread_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)