We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79f1159 commit df94877Copy full SHA for df94877
lldb/packages/Python/lldbsuite/test/make/thread.h
@@ -9,6 +9,8 @@ int pthread_threadid_np(pthread_t, __uint64_t *);
9
#elif defined(__linux__)
10
#include <sys/syscall.h>
11
#include <unistd.h>
12
+#elif defined(__FreeBSD__)
13
+#include <pthread_np.h>
14
#elif defined(__NetBSD__)
15
#include <lwp.h>
16
#elif defined(_WIN32)
@@ -22,6 +24,8 @@ inline uint64_t get_thread_id() {
22
24
return tid;
23
25
26
return syscall(__NR_gettid);
27
28
+ return static_cast<uint64_t>(pthread_getthreadid_np());
29
30
// Technically lwpid_t is 32-bit signed integer
31
return static_cast<uint64_t>(_lwp_self());
0 commit comments