LOCKTHREAD (re-lock the current execution thread)

Top  Previous  Next

 

LOCKTHREAD

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