From 1b5afbbbef425851435e2e9f7225bd842084abf9 Mon Sep 17 00:00:00 2001 From: "Jessica Wong (Seattle)" Date: Thu, 5 Dec 2024 11:24:35 -0800 Subject: [PATCH] address comments --- source/async_stack.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/async_stack.cpp b/source/async_stack.cpp index 738dc057..0970f238 100644 --- a/source/async_stack.cpp +++ b/source/async_stack.cpp @@ -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