1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-03 17:13:17 +03:00

Atomic bools for RWLockMonitor

This commit is contained in:
Leonid Fedorov
2023-04-20 23:46:30 +00:00
parent 9eaa4b0a94
commit 7216707654
7 changed files with 28 additions and 24 deletions

View File

@@ -20,7 +20,7 @@
* $Id: extentmap.cpp 1936 2013-07-09 22:10:29Z dhall $
*
****************************************************************************/
#include <atomic>
#include <iostream>
#include <sys/types.h>
#include <sys/time.h>
@@ -6065,17 +6065,17 @@ void ExtentMap::confirmChangesRBTree()
undoRecordsRBTree.clear();
}
const bool* ExtentMap::getEMFLLockStatus()
const std::atomic<bool>* ExtentMap::getEMFLLockStatus()
{
return &flLocked;
}
const bool* ExtentMap::getEMLockStatus()
const std::atomic<bool>* ExtentMap::getEMLockStatus()
{
return &emLocked;
}
const bool* ExtentMap::getEMIndexLockStatus()
const std::atomic<bool>* ExtentMap::getEMIndexLockStatus()
{
return &emIndexLocked;
}