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
No boost condition (#2822)
This patch replaces boost primitives with stdlib counterparts.
This commit is contained in:
@ -18,19 +18,22 @@
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
#include <ctime>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <boost/uuid/uuid.hpp>
|
||||
#include <boost/uuid/uuid_generators.hpp>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
using namespace boost;
|
||||
|
||||
|
||||
#include "querytele.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
// It's not clear that random_generator is thread-safe, so we'll just mutex it...
|
||||
uuids::random_generator uuidgen;
|
||||
mutex uuidgenMtx;
|
||||
std::mutex uuidgenMtx;
|
||||
} // namespace
|
||||
|
||||
namespace querytele
|
||||
@ -38,7 +41,7 @@ namespace querytele
|
||||
/*static*/
|
||||
uuids::uuid QueryTeleClient::genUUID()
|
||||
{
|
||||
mutex::scoped_lock lk(uuidgenMtx);
|
||||
std::unique_lock lk(uuidgenMtx);
|
||||
return uuidgen();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user