diff options
Diffstat (limited to 'libc-top-half/musl/arch/wasm32/pthread_arch.h')
-rw-r--r-- | libc-top-half/musl/arch/wasm32/pthread_arch.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc-top-half/musl/arch/wasm32/pthread_arch.h b/libc-top-half/musl/arch/wasm32/pthread_arch.h new file mode 100644 index 0000000..58e76ab --- /dev/null +++ b/libc-top-half/musl/arch/wasm32/pthread_arch.h @@ -0,0 +1,5 @@ +extern _Thread_local struct __pthread __wasilibc_pthread_self; + +static inline uintptr_t __get_tp() { + return (uintptr_t)&__wasilibc_pthread_self; +} |