TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Paul Rider
from: Peter Fitzsimmons
date: 1995-06-01 17:20:00
subject: ThreadTermination Methods

PR>         How can I terminate a thread that main() has created when main 
 PR> exits. Well that's the theme, here's the situation. 
 PR> I'm in a method that's updating mouse 
 PR> coordinates/button flags of my mouse class. I'm using 
 PR> blocking reads of the mouse driver. When my main 
 PR> decides to exit I want to be able to exit the 
 PR> mouse.Update() thread gracefully.

You have just found the flaw in the Mou api.  Other's have been there
before, and AFAIK,  know one has found a solution.

Just forget about the grace,  and let thread 1 die (which will kill the
other threads).


--- Maximus/2 2.02p1
* Origin: Sol 3/Toronto (905)858-8488 (1:259/414)
SEEN-BY: 105/42 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: 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™.