| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Threads |
Peter Fitzsimmons wrote in a message to Alan Clifford: PF> DosEnterCritSec() is a bad practice, it is NEVER _required_ PF> (you can always use a sem instead), and shoots SMP OS/2 in PF> the foot. In my opinion, DosEnterCritSec() is appropriate where you do not have full control of the source code. If you are writing a library, you can always require as part of your API that the client check your internal semaphore by calling a function provided for that purpose, but there are some cases where this is not practical. Many C language run-time libraries must stop all threads in the process at some point, often inside low-level routines such as malloc(). There really are things which are critical sections, and declaring them as such is a good idea. -- Mike ---* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107) SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 323/107 170/400 396/1 270/101 712/515 711/808 809 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™.