TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: James Mckenzie
from: Phil Crown
date: 1995-10-26 21:57:56
subject: _beginthread killthread

-=> Quoting James Mckenzie to Peter Fitzsimmons <=- 

 -=> Quoting Peter Fitzsimmons to Phil Crown <=-
 
 PC> How do I kill a thread that was started with _beginthread()?
 
 PF> Ask it to commit suicide.   This is the only good answer.
 JM> 
 JM> How about _endthread?  I think that should work.  You are right that
 JM> DosEndThread is not the way to make things work.  Those that created
 JM> those two options should be subject to their own work....

Suicide and _endthread() are synonymous in this case.

_endthread() is called within the thread itself, which will work, but the
thread needs to be told somehow to call _endthread().

Calling _endthread() outside the thread I want to kill... will probably
produce unpredicitable results.

phil.crown{at}bluecafe.com

--- Blue Wave/Max v2.21a Beta
* Origin: * MacSavvy * Dallas * Mac * OS/2 * (214)250-4479 * (1:124/1208)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 124/1208 1 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™.