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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to