mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 19:04:00 +02:00
bugfix for shutdown of threads and garbage collection.
This commit is contained in:
@@ -52,11 +52,15 @@ protected:
|
||||
bool hasBeginExecution;
|
||||
bool deleteSelfOnExecutionDone;
|
||||
|
||||
Mutex mutexStarted;
|
||||
bool started;
|
||||
|
||||
virtual void setQuitStatus(bool value);
|
||||
void deleteSelfIfRequired();
|
||||
|
||||
void *genericData;
|
||||
|
||||
|
||||
public:
|
||||
BaseThread();
|
||||
virtual ~BaseThread();
|
||||
@@ -66,6 +70,9 @@ public:
|
||||
virtual bool getQuitStatus();
|
||||
virtual bool getRunningStatus();
|
||||
|
||||
virtual bool getStarted();
|
||||
virtual void setStarted(bool value);
|
||||
|
||||
virtual bool getHasBeginExecution();
|
||||
virtual void setHasBeginExecution(bool value);
|
||||
|
||||
|
@@ -58,6 +58,9 @@ public:
|
||||
|
||||
private:
|
||||
SDL_Thread* thread;
|
||||
std::auto_ptr<Mutex> mutexthreadAccessor;
|
||||
bool threadObjectValid();
|
||||
|
||||
bool deleteAfterExecute;
|
||||
static Mutex mutexthreadList;
|
||||
static vector<Thread *> threadList;
|
||||
|
Reference in New Issue
Block a user