[fpc-pascal] Sched_Yield, TThread, Multiplexing, Sysutils, Sleep, Win32, Linux, and Thanks

memsom memsom at interalpha.co.uk
Wed Sep 20 11:02:47 CEST 2006


> it seemed to run in a serial fashion and not as a separate task.

Well... Win32 at any rate, use one of the following:

CreateSemaphore / CreateMutex / CreateEvent

Then use the handle with one of the following:

WaitForSingleObject / WaitForMultipleObjects

Depending on what you are doing, making sure you pass a sensible sleep
timeout.






More information about the fpc-pascal mailing list