TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: David A. Beisel
date: 1996-08-13 14:34:52
subject: Semaphore

In a message of   If you want to use this technique, then I recommend that either 
 DT> you totally understand all the resources required for *ANY* API's you 
 DT> call while within a critsec, or you don't call any API's at all while 
 DT> within the critical section.

 >You're being too easy on him Denis.

 >DosEnterCritSec() should not be used. Period.  Only lazy programmers use 
 >it,  usually because they don't really understand how os/2 works (and 
 >certainly don't understand SMP); they are bound to write crappy 
 >software.

  Well, I have used DosEnterCritSec when I had to call a time-critical
communications routine in order to prevent timeouts (Communicating with weird PLC's).
  I needed to be sure that when I went into that routine, everything else
stopped until it was completed.  It WAS designed to be as quick as possible.
  I don't think I'm being lazy... I just wanted to point out that I think
that there are legitimate uses for DosEnterCritSec.

--- Squish/2 v1.01
* Origin: ProSoft Systems, Inc. BBS (1:104/337)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 104/337 169 627 3615/50 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.