mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 22:21:18 +02:00
- attempt to make mutex usage more stable and find memory issues
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <SDL_thread.h>
|
||||
#include <SDL_mutex.h>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include "data_types.h"
|
||||
#ifdef DEBUG_PERFORMANCE_MUTEXES
|
||||
@@ -59,7 +60,7 @@ private:
|
||||
SDL_Thread* thread;
|
||||
|
||||
static Mutex mutexthreadList;
|
||||
static std::vector<Thread *> threadList;
|
||||
static vector<Thread *> threadList;
|
||||
|
||||
public:
|
||||
Thread();
|
||||
@@ -94,6 +95,10 @@ private:
|
||||
|
||||
Shared::PlatformCommon::Chrono *chronoPerf;
|
||||
|
||||
bool isStaticMutexListMutex;
|
||||
static auto_ptr<Mutex> mutexMutexList;
|
||||
static vector<Mutex *> mutexList;
|
||||
|
||||
public:
|
||||
Mutex(string ownerId="");
|
||||
~Mutex();
|
||||
|
Reference in New Issue
Block a user