1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-06-12 05:01:56 +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

@ -68,7 +68,7 @@ SocketPool::SocketPool()
SocketPool::~SocketPool()
{
std::unique_lock lock(mutex);
boost::mutex::scoped_lock lock(mutex);
for (uint i = 0; i < allSockets.size(); i++)
::close(allSockets[i]);
@ -213,7 +213,7 @@ retry:
int SocketPool::getSocket()
{
std::unique_lock lock(mutex);
boost::mutex::scoped_lock lock(mutex);
int clientSocket;
if (freeSockets.size() == 0 && allSockets.size() < maxSockets)
@ -253,7 +253,7 @@ int SocketPool::getSocket()
void SocketPool::returnSocket(const int sock)
{
std::unique_lock lock(mutex);
boost::mutex::scoped_lock lock(mutex);
// cout << "returning socket " << sock << endl;
freeSockets.push_back(sock);
socketAvailable.notify_one();
@ -261,7 +261,7 @@ void SocketPool::returnSocket(const int sock)
void SocketPool::remoteClosed(const int sock)
{
std::unique_lock lock(mutex);
boost::mutex::scoped_lock lock(mutex);
// cout << "closing socket " << sock << endl;
::close(sock);
for (vector<int>::iterator i = allSockets.begin(); i != allSockets.end(); ++i)