1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Revert "No boost condition (#2822)" (#2828)

This reverts commit f916e64927.
This commit is contained in:
Roman Nozdrin
2023-04-22 13:49:50 +01:00
committed by GitHub
parent f916e64927
commit 4fe9cd64a3
245 changed files with 2007 additions and 1261 deletions

View File

@ -40,8 +40,7 @@ using namespace std;
#include "loggingid.h"
using namespace logging;
#include <map>
#include <mutex>
#include <boost/thread/mutex.hpp>
using namespace boost;
#include "messagequeue.h"
@ -205,7 +204,7 @@ void WESplClient::send()
if (fOwner.getDebugLvl() > 2)
cout << "DataRqstCnt [" << getPmId() << "] = " << getDataRqstCount() << endl;
std::unique_lock aLock(fSentQMutex);
boost::mutex::scoped_lock aLock(fSentQMutex);
messageqcpp::SBS aSbs = fSendQueue.front();
fSendQueue.pop();
aLock.unlock();
@ -213,7 +212,7 @@ void WESplClient::send()
if (aLen > 0)
{
std::unique_lock aLock(fWriteMutex);
boost::mutex::scoped_lock aLock(fWriteMutex);
setBytesTx(getBytesTx() + aLen);
try
@ -310,7 +309,7 @@ void WESplClient::add2SendQueue(const messageqcpp::SBS& Sbs)
void WESplClient::clearSendQueue()
{
std::unique_lock aLock(fSentQMutex);
boost::mutex::scoped_lock aLock(fSentQMutex);
while (!fSendQueue.empty())
fSendQueue.pop();
@ -321,7 +320,7 @@ void WESplClient::clearSendQueue()
int WESplClient::getSendQSize()
{
int aQSize = 0;
std::unique_lock aLock(fSentQMutex);
boost::mutex::scoped_lock aLock(fSentQMutex);
aQSize = fSendQueue.size();
aLock.unlock();
return aQSize;