[fpc-pascal] tthread.waitfor with timeout

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Jan 16 22:29:09 CET 2012


On 16 Jan 2012, at 22:25, Jorge Aldo G. de F. Junior wrote:

> is there a way to do the equivalent of waifor but with some kind of timeout ?

No. And at least the Unix pthreads library does not offer such an API, so it can't be added without some kind of emulation either (adding an extra event per thread or so to wait on -- but every thread already consumes quite a few extra such resources, and they should be kept to a minimum).


Jonas


More information about the fpc-pascal mailing list