Re: [fpc-pascal] tthread.waitfor with timeout

2012-01-16 Thread Jonas Maebe
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 pe

[fpc-pascal] tthread.waitfor with timeout

2012-01-16 Thread Jorge Aldo G. de F. Junior
hi ! while working on my pascal actor model concurrency framework i hit a problem with the way tthread is currently implemented. i need to quit all actors (threads) before closing the main application. this is done by waitfor/free each actor until none is left in the pool of locally running actor