X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthreadrecon.h;h=e9ab35ee508f627b5ef3b96d56469d05f3b7be6e;hb=7df269f65639c1a862a58649c48331824029128a;hp=ae6f0d27bd8edbb6575cf1e9208d1c271fa31341;hpb=9776c9a12ba53419d34563a5ec57c90e3d6798f4;p=ctsim.git diff --git a/src/threadrecon.h b/src/threadrecon.h index ae6f0d2..e9ab35e 100644 --- a/src/threadrecon.h +++ b/src/threadrecon.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2001 Kevin Rosenberg ** -** $Id: threadrecon.h,v 1.3 2001/02/22 18:22:40 kevin Exp $ +** $Id: threadrecon.h,v 1.4 2001/02/23 02:06:02 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -33,6 +33,20 @@ #include #include "timer.h" +// This thread creates a BackgroundTask event handler object +// The thread is detached and terminates when BackgroundTask terminates +class BackgroundTaskThread : public wxThread { +private: + +public: + BackgroundTaskThread(); + + virtual wxThread::ExitCode Entry(); + + // called when the thread exits - whether it terminates normally or is stopped with Delete() + virtual void OnExit(); +}; + class BackgroundTask : public wxEvtHandler { private: @@ -126,9 +140,8 @@ public: virtual wxThread::ExitCode Entry(); // thread execution starts here - // called when the thread exits - whether it terminates normally or is - // stopped with Delete() (but not when it is Kill()ed!) - virtual void OnExit(); + // called when the thread exits - whether it terminates normally or is stopped with Delete() + virtual void OnExit(); };