[fpc-devel] Multithreading wait for

Marco van de Voort marcov at stack.nl
Thu Dec 4 11:59:09 CET 2008


In our previous episode, Mattias Gärtner said:
> Yes, that works under Linux. But the documentation does not mention it, so I'm
> not sure if this works under all platforms.
> Maybe some other OS users can try if the following code runs through:

Uses cthreads;
 
> var
>   e: PRTLEvent;
> begin
>   e:=RTLEventCreate;
>   RTLeventSetEvent(e);
>   RTLeventWaitFor(e);
>   RTLeventdestroy(e);
> end;
> 
> If this is guaranteed then my problem is already solved and the code work as it
> is. But then the documentation must mention it.
> Who knows if this is a documentation bug or a linux bug?

Runs through on FreeBSD.



More information about the fpc-devel mailing list