| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | _beginthread killthread |
Phil, PC> -=> Quoting Randy Kirschenmann to Phil Crown <=- PC> PC> PC> How do I kill a thread that was started with _beginthread()? PC> PC> RK> Phil, use _endthread(): PC> RK> here's a little demo that came with WC++ 10.5 PC> PC> Thanks for the code. PC> PC> I've also found that DosKillThread() works on threads started with PC> _beginthread(), my problem was I wasn't keeping track of my TID properly. I am hearing that _endthread is the way to go. I am very new to C++ programming so I haven't used it yet. There is a problem with DosKillThread() that it can't be used to end a suspended thread. It is also possible to for the thread to be killed before deallocating reasources that it might need to. The CSet docs are saying that even a thread started with DosStartThread should be ended with an _endthread. I'm told the correct way to end a thread is to let the thread clean up and end itself. As an alternative to _endthread, the return from the routine called with _beginthread does an implied endthread. I've been trying to reply to your posts but haven't had much luck getting out with this offline reader. Good Luck. John ... * ATP/DJgcc 1.42 * >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> --- Maximus/2 3.00* Origin: TeamOS/2-Denver * USR V.34 * Denver (303)369-5057 (1:104/720) 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: 104/720 678 627 3615/50 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™.