You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-06-12 05:01:56 +03:00
This reverts commit f916e64927
.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user