From 0f30d227497418c6d3bef7d52244407e30454504 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 22 Dec 2025 23:27:56 +0100 Subject: Added c11 threads, fixed some locks and add *_unlocked functions --- lib/libc/thread/thrd_current.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/libc/thread/thrd_current.c') 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 #include -thread_local struct __thread_self __thread_self; - thrd_t thrd_current(void) { - return &__thread_self; + return __libc_thread_self(); } -- cgit v1.2.3