8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 14:03:07 +01:00

Use volatile for better thread-safety, noted by Adriano

This commit is contained in:
hvlad 2009-09-10 06:40:52 +00:00
parent 731e24a875
commit 9071ff2465
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ namespace EDS {
GlobalPtr<Manager> Manager::manager;
Mutex Manager::m_mutex;
Provider* Manager::m_providers = NULL;
bool Manager::m_initialized = false;
volatile bool Manager::m_initialized = false;
Manager::Manager(MemoryPool& pool) :
PermanentStorage(pool)

View File

@ -77,7 +77,7 @@ private:
static Firebird::GlobalPtr<Manager> manager;
static Firebird::Mutex m_mutex;
static Provider* m_providers;
static bool m_initialized;
static volatile bool m_initialized;
};