Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.65 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.65 KB

Test Threading

Build Status Supports Windows Supports Linux Supports macOS License Latest Release Downloads

Example of how to use the Class TThread and all of the threading tools available with Free Pascal.

Single Thread, Single Instance

This exemplifies the most basic use of a thread.

It declares an event to hook into the main form.

This is a single shot use because we set the thread's FreeOnTerminate property to True.

Single Thread, Many Instances

The example above isn't of much use if we just run a single instance.

In this example we create multiple instances of the same thread and we start them concurrently.

This is, also, a single shot use because we set the thread's FreeOnTerminate property to True.