diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-22 23:27:56 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-22 23:30:32 +0100 |
| commit | 0f30d227497418c6d3bef7d52244407e30454504 (patch) | |
| tree | 0e1ac19623d3268380cf74328cdf643648a2f43c /lib/libc/thread/thrd_current.c | |
| parent | 90dad97fc07f049383903a166631e2c257f9b8c1 (diff) | |
Added c11 threads, fixed some locks and add *_unlocked functions
Diffstat (limited to 'lib/libc/thread/thrd_current.c')
| -rw-r--r-- | lib/libc/thread/thrd_current.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/thread/thrd_current.c b/lib/libc/thread/thrd_current.c index b588cc27..fd563bb6 100644 --- a/lib/libc/thread/thrd_current.c +++ b/lib/libc/thread/thrd_current.c @@ -1,9 +1,7 @@ -#include <__thread.h> +#include <libc/thread.h> #include <threads.h> -thread_local struct __thread_self __thread_self; - thrd_t thrd_current(void) { - return &__thread_self; + return __libc_thread_self(); } |
