1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +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

@ -35,7 +35,7 @@
using namespace std;
namespace
{
boost::mutex fac_guard;
std::mutex fac_guard;
}
namespace idbdatafile
@ -45,7 +45,7 @@ IDBFactory::FactoryMap IDBFactory::s_plugins;
bool IDBFactory::installDefaultPlugins()
{
// protect these methods since we are changing our static data structure
boost::mutex::scoped_lock lock(fac_guard);
std::unique_lock lock(fac_guard);
s_plugins.emplace(IDBDataFile::BUFFERED, FileFactoryEnt(IDBDataFile::BUFFERED, "buffered", new BufferedFileFactory(),
new PosixFileSystem()));
@ -58,7 +58,7 @@ bool IDBFactory::installDefaultPlugins()
bool IDBFactory::installPlugin(const std::string& plugin)
{
// protect these methods since we are changing our static data structure
boost::mutex::scoped_lock lock(fac_guard);
std::unique_lock lock(fac_guard);
void* handle = dlopen(plugin.c_str(), RTLD_LAZY);