Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jesswong committed Dec 5, 2024
1 parent ba96eb2 commit 1b5afbb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/async_stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,12 @@ static std::uint64_t get_os_thread_id() {
return tid;
# elif defined(_WIN32)
return std::uint64_t(GetCurrentThreadId());
# elif defined(__FreeBSD__)
long tid;
thr_self(&tid);
# elif defined(__EMSCRIPTEN__)
return 0;
# else
# elif defined(__linux__)
return std::uint64_t(gettid());
# else
# error "Unsupported platform in get_os_thread_id"
# endif
}
#endif // UNIFEX_ASYNC_STACK_ROOT_USE_PTHREAD == 0
Expand Down

0 comments on commit 1b5afbb

Please sign in to comment.