[fpc-pascal] cthreads and cSemaphoreTimedWait
Michael Van Canneyt
michael at freepascal.org
Tue Feb 11 13:46:16 CET 2014
On Tue, 11 Feb 2014, Dimitrios Chr. Ioannidis wrote:
> Hi,
>
> the TThreadManager class has only the SemaphoreWait procedure and it
> lacks the SemaphoreTimedWait function. But in the cthreads unit exists a
> cSemaphoreTimedWait implementation.
>
> Is there a problem with that function and didn't included in the
> TThreadManager class ?
No particular problem.
>
> I have some existed code to port and it uses semaphores. I would like
> to avoid change it too much.
I guess we can add it. In fact, it makes no sense to have a function without timeout,
you can always specify -1 or some such value if you don't want a timeout.
Michael.
More information about the fpc-pascal
mailing list