On 07/20/2015 10:42 AM, kapibara wrote:
I'm afraid that if a TCriticalSection is used, all threads except one
is blocked.
No. Only those that try to acquire the CriticalSection while they are
owned by another thread.
Critical section is just a binary (non counting) Semaphore). I never had
a problem when using them,
Of course counting semaphores and priority control for the waiting
threads in some cases is needed.
-Michael
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus