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
No boost condition (#2822)
This patch replaces boost primitives with stdlib counterparts.
This commit is contained in:
@ -75,8 +75,8 @@ CopyLockEntry::CopyLockEntry()
|
||||
}
|
||||
|
||||
/*static*/
|
||||
boost::mutex CopyLocksImpl::fInstanceMutex;
|
||||
boost::mutex CopyLocks::mutex;
|
||||
std::mutex CopyLocksImpl::fInstanceMutex;
|
||||
std::mutex CopyLocks::mutex;
|
||||
|
||||
/*static*/
|
||||
CopyLocksImpl* CopyLocksImpl::fInstance = 0;
|
||||
@ -84,7 +84,7 @@ CopyLocksImpl* CopyLocksImpl::fInstance = 0;
|
||||
/*static*/
|
||||
CopyLocksImpl* CopyLocksImpl::makeCopyLocksImpl(unsigned key, off_t size, bool readOnly)
|
||||
{
|
||||
boost::mutex::scoped_lock lk(fInstanceMutex);
|
||||
std::unique_lock lk(fInstanceMutex);
|
||||
|
||||
if (fInstance)
|
||||
{
|
||||
@ -128,7 +128,7 @@ void CopyLocks::setReadOnly()
|
||||
/* always returns holding the specified lock type, and with the EM seg mapped */
|
||||
void CopyLocks::lock(OPS op)
|
||||
{
|
||||
boost::mutex::scoped_lock lk(mutex);
|
||||
std::unique_lock lk(mutex);
|
||||
|
||||
if (op == READ)
|
||||
shminfo = mst.getTable_read(MasterSegmentTable::CLSegment);
|
||||
|
Reference in New Issue
Block a user