From af9b136c436c81b85c16025f6efdf8f19122b31c Mon Sep 17 00:00:00 2001 From: "Jessica Wong (Seattle)" Date: Wed, 4 Dec 2024 10:42:11 -0800 Subject: [PATCH] remove utils namespace --- source/async_stack.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/async_stack.cpp b/source/async_stack.cpp index 89d4df2f..f63d9e8b 100644 --- a/source/async_stack.cpp +++ b/source/async_stack.cpp @@ -92,7 +92,6 @@ extern "C" { auto* kUnifexAsyncStackRootHolderList = new AsyncStackRootHolderList(); } -namespace utils { static std::uint64_t get_os_thread_id() { # if defined(__APPLE__) std::uint64_t tid; @@ -104,7 +103,6 @@ static std::uint64_t get_os_thread_id() { return std::uint64_t(gettid()); # endif } -} // namespace utils #endif // UNIFEX_ASYNC_STACK_ROOT_USE_PTHREAD == 0 namespace { @@ -136,7 +134,7 @@ struct AsyncStackRootHolder { UNIFEX_ASSERT(result == 0); #else kUnifexAsyncStackRootHolderList->add(this); - threadId = unifex::utils::get_os_thread_id(); + threadId = unifex::get_os_thread_id(); #endif }