<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07/20/2015 10:42 AM, kapibara wrote:<br>
</div>
<blockquote cite="mid:55ACB47B.10006@aol.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
I'm afraid that if a TCriticalSection is used, all threads except
one is blocked.<br>
</blockquote>
No. Only those that try to acquire the CriticalSection while they
are owned by another thread. <br>
<br>
Critical section is just a binary (non counting) Semaphore). I never
had a problem when using them, <br>
<br>
Of course counting semaphores and priority control for the waiting
threads in some cases is needed. <br>
<br>
-Michael<br>
</body>
</html>