We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42d006 commit 9ba5b52Copy full SHA for 9ba5b52
lldb/packages/Python/lldbsuite/test/make/thread.h
@@ -13,6 +13,8 @@ int pthread_threadid_np(pthread_t, __uint64_t *);
13
#include <pthread_np.h>
14
#elif defined(__NetBSD__)
15
#include <lwp.h>
16
+#elif defined(__OpenBSD__)
17
+#include <unistd.h>
18
#elif defined(_WIN32)
19
#include <windows.h>
20
#endif
@@ -29,6 +31,8 @@ inline uint64_t get_thread_id() {
29
31
30
32
// Technically lwpid_t is 32-bit signed integer
33
return static_cast<uint64_t>(_lwp_self());
34
35
+ return static_cast<uint64_t>(getthrid());
36
37
return static_cast<uint64_t>(::GetCurrentThreadId());
38
#else
0 commit comments