From f64936f251692f61f9263efec59ecd1a849a9636 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Wed, 13 Mar 2024 11:34:29 +0000 Subject: [PATCH] maint: Replace use of folly getCurrentThreadId with STL Signed-off-by: Ian Thomas --- cpp/arcticdb/util/storage_lock.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpp/arcticdb/util/storage_lock.hpp b/cpp/arcticdb/util/storage_lock.hpp index 2574cc098f3..dd43f6daa0e 100644 --- a/cpp/arcticdb/util/storage_lock.hpp +++ b/cpp/arcticdb/util/storage_lock.hpp @@ -14,9 +14,9 @@ #include #include -#include - +#include #include +#include namespace arcticdb { @@ -66,8 +66,8 @@ struct StorageLockTimeout : public std::runtime_error { using std::runtime_error::runtime_error; }; -inline uint64_t get_thread_id() { - return folly::getCurrentThreadID(); +inline std::thread::id get_thread_id() noexcept { + return std::this_thread::get_id(); } template