mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Use volatile for better thread-safety, noted by Adriano
This commit is contained in:
parent
731e24a875
commit
9071ff2465
@ -54,7 +54,7 @@ namespace EDS {
|
|||||||
GlobalPtr<Manager> Manager::manager;
|
GlobalPtr<Manager> Manager::manager;
|
||||||
Mutex Manager::m_mutex;
|
Mutex Manager::m_mutex;
|
||||||
Provider* Manager::m_providers = NULL;
|
Provider* Manager::m_providers = NULL;
|
||||||
bool Manager::m_initialized = false;
|
volatile bool Manager::m_initialized = false;
|
||||||
|
|
||||||
Manager::Manager(MemoryPool& pool) :
|
Manager::Manager(MemoryPool& pool) :
|
||||||
PermanentStorage(pool)
|
PermanentStorage(pool)
|
||||||
|
@ -77,7 +77,7 @@ private:
|
|||||||
static Firebird::GlobalPtr<Manager> manager;
|
static Firebird::GlobalPtr<Manager> manager;
|
||||||
static Firebird::Mutex m_mutex;
|
static Firebird::Mutex m_mutex;
|
||||||
static Provider* m_providers;
|
static Provider* m_providers;
|
||||||
static bool m_initialized;
|
static volatile bool m_initialized;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user