bugfix for shutdown of threads and garbage collection.

This commit is contained in:
Mark Vejvoda
2013-06-21 22:59:22 +00:00
parent 0e184d609c
commit 76ee030e93
3 changed files with 232 additions and 136 deletions

View File

@@ -61,6 +61,7 @@ private:
bool deleteAfterExecute;
static Mutex mutexthreadList;
static vector<Thread *> threadList;
static bool enableVerboseMode;
protected:
void addThreadToList();
@@ -71,6 +72,9 @@ public:
Thread();
virtual ~Thread();
static void setEnableVerboseMode(bool value) { enableVerboseMode = value; }
static bool getEnableVerboseMode() { return enableVerboseMode; }
static std::vector<Thread *> getThreadList();
static void shutdownThreads();