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
clang format apply
This commit is contained in:
@ -28,32 +28,30 @@ using namespace boost;
|
||||
|
||||
namespace
|
||||
{
|
||||
//It's not clear that random_generator is thread-safe, so we'll just mutex it...
|
||||
// It's not clear that random_generator is thread-safe, so we'll just mutex it...
|
||||
uuids::random_generator uuidgen;
|
||||
mutex uuidgenMtx;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
namespace querytele
|
||||
{
|
||||
|
||||
/*static*/
|
||||
uuids::uuid QueryTeleClient::genUUID()
|
||||
{
|
||||
mutex::scoped_lock lk(uuidgenMtx);
|
||||
return uuidgen();
|
||||
mutex::scoped_lock lk(uuidgenMtx);
|
||||
return uuidgen();
|
||||
}
|
||||
|
||||
/*static*/
|
||||
int64_t QueryTeleClient::timeNowms()
|
||||
{
|
||||
int64_t nowms = -1;
|
||||
struct timeval tv;
|
||||
int64_t nowms = -1;
|
||||
struct timeval tv;
|
||||
|
||||
if (gettimeofday(&tv, 0) == 0)
|
||||
nowms = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
|
||||
|
||||
return nowms;
|
||||
}
|
||||
if (gettimeofday(&tv, 0) == 0)
|
||||
nowms = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
|
||||
|
||||
return nowms;
|
||||
}
|
||||
|
||||
} // namespace querytele
|
||||
|
Reference in New Issue
Block a user