Skip to content

Commit

Permalink
maint: Replace use of folly getCurrentThreadId with STL
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Thomas <[email protected]>
  • Loading branch information
ianthomas23 committed Mar 13, 2024
1 parent baf9eb9 commit f64936f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cpp/arcticdb/util/storage_lock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include <arcticdb/util/exponential_backoff.hpp>
#include <arcticdb/util/configs_map.hpp>

#include <folly/system/ThreadId.h>

#include <fmt/std.h>
#include <mutex>
#include <thread>

namespace arcticdb {

Expand Down Expand Up @@ -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 <class ClockType = util::SysClock>
Expand Down

0 comments on commit f64936f

Please sign in to comment.