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

No boost condition (#2822)

This patch replaces boost primitives with stdlib counterparts.
This commit is contained in:
Leonid Fedorov
2023-04-22 00:42:45 +03:00
committed by GitHub
parent 3ce19abdae
commit f916e64927
245 changed files with 1261 additions and 2007 deletions

View File

@ -307,7 +307,7 @@ const std::string UmSocketSelector::toString() const
//------------------------------------------------------------------------------
void UmModuleIPs::addIP(in_addr_t ip)
{
boost::mutex::scoped_lock lock(fUmModuleMutex);
std::unique_lock lock(fUmModuleMutex);
#ifdef MOD_CONN_DEBUG
std::ostringstream oss;
@ -331,7 +331,7 @@ bool UmModuleIPs::addSocketConn(const SP_UM_IOSOCK& ioSock, const SP_UM_MUTEX& w
{
bool bConnAdded = false;
boost::mutex::scoped_lock lock(fUmModuleMutex);
std::unique_lock lock(fUmModuleMutex);
for (unsigned int i = 0; i < fUmIPSocketConns.size(); ++i)
{
@ -367,7 +367,7 @@ bool UmModuleIPs::addSocketConn(const SP_UM_IOSOCK& ioSock, const SP_UM_MUTEX& w
//------------------------------------------------------------------------------
void UmModuleIPs::delSocketConn(const messageqcpp::IOSocket& ioSock)
{
boost::mutex::scoped_lock lock(fUmModuleMutex);
std::unique_lock lock(fUmModuleMutex);
for (unsigned int i = 0; i < fUmIPSocketConns.size(); ++i)
{
@ -408,7 +408,7 @@ bool UmModuleIPs::nextIOSocket(SP_UM_IOSOCK& outIos, SP_UM_MUTEX& writeLock)
{
bool found = false;
boost::mutex::scoped_lock lock(fUmModuleMutex);
std::unique_lock lock(fUmModuleMutex);
if ((fUmIPSocketConns.size() > 0) && (fNextUmIPSocketIdx != NEXT_IP_SOCKET_UNASSIGNED))
{
@ -468,7 +468,7 @@ const std::string UmModuleIPs::toString()
{
std::ostringstream oss;
boost::mutex::scoped_lock lock(fUmModuleMutex);
std::unique_lock lock(fUmModuleMutex);
oss << "UM module name: " << fUmModuleName << "; nextUmIPIdx: " << fNextUmIPSocketIdx << std::endl;
for (unsigned int i = 0; i < fUmIPSocketConns.size(); ++i)