Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!know!sdd.hp.com!ucsd!ogicse!cvedc!gssc!timo From: timo@gssc.UUCP (Timo Wilson) Newsgroups: comp.os.os2.misc Subject: Re: OS/2 Threads...... Message-ID: <6488@gssc.UUCP> Date: 17 Dec 90 20:10:43 GMT References: <5578@newton.praxis.co.uk> Organization: Graphic Software Systems, Inc. Beaverton, Or. Lines: 18 In article <5578@newton.praxis.co.uk> graeme@praxis.co.uk (Graeme Cutler) writes: >----- News saved at 10 Dec 90 14:55:41 GMT > >Is it possible to kill off threads from inside a C program? Is it even a >sensible question to ask? ;-) >might be useful? The only method I have used to kill a thread is to send a user defined message to your thread that tells it to die. When your thread recieves the message, have it terminate its own message loop. Then do the proper cleaning up and finally call DosExit. There are probably other ways (semifores, etc) that could be used instead of messages. timo timo@gss.com