Skip to content

Commit

Permalink
remove utils namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jesswong committed Dec 4, 2024
1 parent 4f9f5f3 commit af9b136
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/async_stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit af9b136

Please sign in to comment.