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 bece0d7 commit 1c334deCopy full SHA for 1c334de
llvm/lib/Support/Unix/Threading.inc
@@ -55,6 +55,10 @@
55
#include <unistd.h> // For syscall()
56
#endif
57
58
+#if defined(__HAIKU__)
59
+#include <OS.h> // For B_OS_NAME_LENGTH
60
+#endif
61
+
62
namespace llvm {
63
pthread_t
64
llvm_execute_on_thread_impl(void *(*ThreadFunc)(void *), void *Arg,
@@ -139,6 +143,8 @@ uint64_t llvm::get_threadid() {
139
143
static constexpr uint32_t get_max_thread_name_length_impl() {
140
144
#if defined(PTHREAD_MAX_NAMELEN_NP)
141
145
return PTHREAD_MAX_NAMELEN_NP;
146
+#elif defined(__HAIKU__)
147
+ return B_OS_NAME_LENGTH;
142
148
#elif defined(__APPLE__)
149
return 64;
150
#elif defined(__sun__) && defined(__svr4__)
0 commit comments