TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: James Mckenzie
date: 1995-10-29 16:23:26
subject: Re: _beginthread killthread

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

 PF> _endthread() exits from the current thread.  It can not be used to
 PF> kill another thread.  A thread committing suicide might call
 PF> _endthread.  This is not the same thing as DosKillThread(). 

True.  It just might be possible to track the Tread ID and use
DOSKillThread (TID), but how about making it so that you can 
run the threads from a central thread, and call sub-threads that 
terminate when they are done?  Threads should come to an end
and that is how it was explained to me.  (A sort thread that
is re-entrant is a good example.)

Jim


... Go straight to the docs.  Do not pass GO.  Do not collect $200!
--- Blue Wave/Max v2.12 [NR]
* Origin: Druid's Grove BBS -- 914-876-2237 (1:2624/306)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809
@PATH: 2624/306 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™.