You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
compilation failure
error: reference to 'mutex' is ambiguous note: candidates are: 'class boost::mutex' note: 'class std::mutex'
This commit is contained in:
@ -81,7 +81,7 @@ Config* Config::makeConfig(const string& cf)
|
||||
|
||||
Config* Config::makeConfig(const char* cf)
|
||||
{
|
||||
mutex::scoped_lock lk(fInstanceMapMutex);
|
||||
boost::mutex::scoped_lock lk(fInstanceMapMutex);
|
||||
|
||||
static string defaultFilePath;
|
||||
|
||||
@ -218,7 +218,7 @@ void Config::closeConfig(void)
|
||||
|
||||
const string Config::getConfig(const string& section, const string& name)
|
||||
{
|
||||
recursive_mutex::scoped_lock lk(fLock);
|
||||
boost::recursive_mutex::scoped_lock lk(fLock);
|
||||
|
||||
if (section.length() == 0 || name.length() == 0)
|
||||
throw invalid_argument("Config::getConfig: both section and name must have a length");
|
||||
@ -245,7 +245,7 @@ const string Config::getConfig(const string& section, const string& name)
|
||||
|
||||
void Config::getConfig(const string& section, const string& name, vector<string>& values)
|
||||
{
|
||||
recursive_mutex::scoped_lock lk(fLock);
|
||||
boost::recursive_mutex::scoped_lock lk(fLock);
|
||||
|
||||
if (section.length() == 0)
|
||||
throw invalid_argument("Config::getConfig: section must have a length");
|
||||
@ -270,7 +270,7 @@ void Config::getConfig(const string& section, const string& name, vector<string>
|
||||
|
||||
void Config::setConfig(const string& section, const string& name, const string& value)
|
||||
{
|
||||
recursive_mutex::scoped_lock lk(fLock);
|
||||
boost::recursive_mutex::scoped_lock lk(fLock);
|
||||
|
||||
if (section.length() == 0 || name.length() == 0 )
|
||||
throw invalid_argument("Config::setConfig: all of section and name must have a length");
|
||||
@ -300,7 +300,7 @@ void Config::setConfig(const string& section, const string& name, const string&
|
||||
|
||||
void Config::delConfig(const string& section, const string& name)
|
||||
{
|
||||
recursive_mutex::scoped_lock lk(fLock);
|
||||
boost::recursive_mutex::scoped_lock lk(fLock);
|
||||
|
||||
if (section.length() == 0 || name.length() == 0)
|
||||
throw invalid_argument("Config::delConfig: both section and name must have a length");
|
||||
@ -328,7 +328,7 @@ void Config::delConfig(const string& section, const string& name)
|
||||
|
||||
void Config::writeConfig(const string& configFile) const
|
||||
{
|
||||
recursive_mutex::scoped_lock lk(fLock);
|
||||
boost::recursive_mutex::scoped_lock lk(fLock);
|
||||
FILE* fi;
|
||||
|
||||
if (fDoc == 0)
|
||||
@ -445,7 +445,7 @@ void Config::writeConfig(const string& configFile) const
|
||||
|
||||
void Config::write(void) const
|
||||
{
|
||||
mutex::scoped_lock lk(fWriteXmlLock);
|
||||
boost::mutex::scoped_lock lk(fWriteXmlLock);
|
||||
#ifdef _MSC_VER
|
||||
writeConfig(fConfigFile);
|
||||
#else
|
||||
@ -540,7 +540,7 @@ void Config::writeConfigFile(messageqcpp::ByteStream msg) const
|
||||
/* static */
|
||||
void Config::deleteInstanceMap()
|
||||
{
|
||||
mutex::scoped_lock lk(fInstanceMapMutex);
|
||||
boost::mutex::scoped_lock lk(fInstanceMapMutex);
|
||||
|
||||
for (Config::configMap_t::iterator iter = fInstanceMap.begin();
|
||||
iter != fInstanceMap.end(); ++iter)
|
||||
@ -602,7 +602,7 @@ int64_t Config::fromText(const std::string& text)
|
||||
|
||||
time_t Config::getCurrentMTime()
|
||||
{
|
||||
recursive_mutex::scoped_lock lk(fLock);
|
||||
boost::recursive_mutex::scoped_lock lk(fLock);
|
||||
|
||||
struct stat statbuf;
|
||||
|
||||
@ -614,7 +614,7 @@ time_t Config::getCurrentMTime()
|
||||
|
||||
const vector<string> Config::enumConfig()
|
||||
{
|
||||
recursive_mutex::scoped_lock lk(fLock);
|
||||
boost::recursive_mutex::scoped_lock lk(fLock);
|
||||
|
||||
if (fDoc == 0)
|
||||
{
|
||||
@ -638,7 +638,7 @@ const vector<string> Config::enumConfig()
|
||||
|
||||
const vector<string> Config::enumSection(const string& section)
|
||||
{
|
||||
recursive_mutex::scoped_lock lk(fLock);
|
||||
boost::recursive_mutex::scoped_lock lk(fLock);
|
||||
|
||||
if (fDoc == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user