[fpc-devel] Threading / Synchronization

Vincent Snijders vsnijders at quicknet.nl
Mon Jan 17 14:42:53 CET 2005

Pedro Lopez-Cabanillas wrote:
> Hi,
> The attached program works well under Linux when compiled with Kylix3. It 
> counts from 1 to 10 and ends. FPC compiles it, but doesn't work (loops  
> forever). Seems that CheckSynchronize doesn't work (or perhaps 
> TThread.Synchronize?). 
> Another issue: CheckSynchronize has in Kylix3 an optional parameter (Timeout: 
> Integer = 0), not available in FPC.

Micha Nelissen took a look at it and said:
> Does it work, if you remove the call to sleep, just before
> CheckSynchronize? Or change it to sleep(1) and observe it prints 1 2 3 4
> every second.


More information about the fpc-devel mailing list