| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | DosKillThread useable? |
RL> The emx docs preach passionately against the use of
RL> DosKillThread(), but don't say what's wrong with it.
The problem is that a thread can only be killed when it is exiting a kernel
function; so if a thread is blocked in a function (DosRead, for example),
it will not be killed.
They may have fixed this for Warp.
IN ANY CASE --- DosKillThread() is _RUDE_. I've never used and and don't
anticipate ever having to use it (it's in the "goto" bucket).
A thread should be asked to die, and it should kill itself.
The OS/2 1.x API didn't even have a DosKillThead() --- not because they
didn't know how, but because they didn't want one; unfortunately the 2.0
developer's caved in.
Other functions that, IMO, are bad (and NOT required):
DosSuspendThread()
DosEnterCritSec() (There used to be a performance trick (over a
semaphore) with this function, but it is no
longer valid now that SMP os/2 exists).
--- Maximus/2 2.02p1
* Origin: Sol 3/Toronto (905)858-8488 (1:259/414)SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955 SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809 @PATH: 259/414 400 99 250/702 3615/50 396/1 270/101 105/103 42 712/515 @PATH: 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™.