[fpc-pascal] Use sleep in thread
Michael Schnell
mschnell at lumino.de
Thu Feb 26 11:14:03 CET 2015
On 02/26/2015 10:50 AM, Marco van de Voort wrote:
> ??? Afaik they are the procedural counterpart of TEvents, and I think
> that using them is cheaper than sleep, since you only unblock when
> needed.
??? I _thought_ sleep would just call the appropriate OS function but in
fact it does
Function FpNanoSleep (req : ptimespec;rem : ptimespec):cint; external
name 'FPC_SYSC_NANOSLEEP';
I don't know what this does.
-Michael
More information about the fpc-pascal
mailing list