[fpc-devel] Patch for RTLEvent calls which fixes a race condition
Micha Nelissen
micha at neli.hopto.org
Fri Dec 15 20:29:29 CET 2006
Lloyd Park wrote:
> I had problems with a threaded app under Linux which hung because one
> thread would sometimes call RTLSetEvent before the other called
> RTLEventStartWait. The attached patch for the 2.1.1 branch revision
> 5606 fixes the problem.
Better rewrite it to use semaphore (sem_*) functions. The conditional
variables are very disappointing (exactly for the reason you describe).
Micha
More information about the fpc-devel
mailing list