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

@ -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>
@ -6036,17 +6036,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;
}