Fwd: Re: [AD] exiting

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


==================BEGIN FORWARDED MESSAGE==================
>From: "John Harger" <john_h@xxxxxxxxxx>
>To: "Jason Wilkins" <fenix@xxxxxxxxxx>
>Date: Thu, 08 Jul 1999 15:55:22 -0700
>Reply-To: "John Harger" <john_h@xxxxxxxxxx>
>Priority: Normal
>X-Mailer: PMMail 98 Standard (2.01.1600) For Windows 95 (4.0.1111)
>MIME-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>Content-Transfer-Encoding: 7bit
>Subject: Re: [AD] exiting
>

On Thu, 8 Jul 1999 16:07:49 -0500 (CDT), Jason Wilkins wrote:

>Problem:
>
>exit() in BeOS only seems to work from the main thread.  If I call it from
>another thread, it just ends the thread.  I'm no even sure if it works
>from the main thread.  This bug manefested itself when I put exit(0) in
>the keyboard driver to kill the program on command-option-end (ctl-alt-end
>on PC keyboards)  The keyboard driver would stop, but the program kept
>running.

I've never coded for BeOS before, but that would make sense to me. That trying to "exit" in a sub-thread would kill only 
that thread, and the only way to kill the entire program would be to kill the main thread. Since doesn't a thread really run 
as if it's a seperate program?

John Harger
--------------------------------------
john_h@xxxxxxxxxx



===================END FORWARDED MESSAGE===================


John Harger
--------------------------------------
john_h@xxxxxxxxxx




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/