JVCL Help:TJvMTThread.OnExecute

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when the thread starts up.


Pascal

 propertyOnExecute: TJvMTThreadEvent;


Description

Run context: background thread Called when the thread enters tsRunning state.
Inserting the code that should execute when the thread is executed.
This is where you implement the thread. When the OnExecute event handler finishes, the thread terminates. Most OnExecute event handlers contain a loop that calls the Sleep method so that other threads are not locked out.
The handler should call CheckTerminate periodically.


See Also

TJvMTThread.CheckTerminate


About

Notes

Setting the OnExecute property will terminate a running thread.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page