1
0
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:
Leonid Fedorov
2023-04-20 23:46:30 +00:00
parent 9729d7cfba
commit 4a8e53f14d
7 changed files with 28 additions and 24 deletions

View File

@ -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;