On 14 May 2010, at 00:18, Roland Schaefer wrote: > Now, instead of busy waiting in the main thread loop (even with a Sleep > inserted), I'd rather have it idle wait until another thread needs to > synchronize. Is that possible?
CheckSynchronize has a parameter "timeout" with the default value 0: http://www.freepascal.org/docs-html/rtl/classes/checksynchronize.html You can pass a different value to wait for a longer period of time (specify the number of milliseconds). There is no equivalent of "wait forever" though. Jonas_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal