mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-26 23:21:11 +00:00
[OpenMP] Use the more appropriate function to retrieve the thread id on OpenBSD (#65553)
Use the getthrid() function instead of a syscall.
This commit is contained in:
parent
2f183d6efb
commit
7e31b45d6a
@ -30,7 +30,7 @@
|
||||
#include <lwp.h>
|
||||
#define __kmp_gettid() _lwp_self()
|
||||
#elif KMP_OS_OPENBSD
|
||||
#define __kmp_gettid() syscall(SYS_getthrid)
|
||||
#define __kmp_gettid() getthrid()
|
||||
#elif defined(SYS_gettid)
|
||||
// Hopefully other Unix systems define SYS_gettid syscall for getting os thread
|
||||
// id
|
||||
|
Loading…
Reference in New Issue
Block a user