You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-27 21:01:50 +03:00
Atomic bools for RWLockMonitor
This commit is contained in:
@ -1035,9 +1035,9 @@ class ExtentMap : public Undoable
|
||||
EXPORT std::vector<InlineLBIDRange> getFreeListEntries();
|
||||
|
||||
EXPORT void dumpTo(std::ostream& os);
|
||||
EXPORT const bool* getEMLockStatus();
|
||||
EXPORT const bool* getEMFLLockStatus();
|
||||
EXPORT const bool* getEMIndexLockStatus();
|
||||
EXPORT const std::atomic<bool>* getEMLockStatus();
|
||||
EXPORT const std::atomic<bool>* getEMFLLockStatus();
|
||||
EXPORT const std::atomic<bool>* getEMIndexLockStatus();
|
||||
size_t EMIndexShmemSize();
|
||||
size_t EMIndexShmemFree();
|
||||
|
||||
@ -1087,7 +1087,9 @@ class ExtentMap : public Undoable
|
||||
time_t fCacheTime; // timestamp associated with config cache
|
||||
|
||||
int numUndoRecords;
|
||||
bool flLocked, emLocked, emIndexLocked;
|
||||
std::atomic<bool> flLocked{false};
|
||||
std::atomic<bool> emLocked{false};
|
||||
std::atomic<bool> emIndexLocked{false};
|
||||
|
||||
static boost::mutex mutex; // @bug5355 - made mutex static
|
||||
static boost::mutex emIndexMutex;
|
||||
|
Reference in New Issue
Block a user