LibC: Make pthread_t pointer to uthread instead of a thread id

This will allow getting info about other threads in userspace!
This commit is contained in:
2026-07-02 19:29:19 +03:00
parent f449ca8161
commit b19b7f064a
8 changed files with 106 additions and 94 deletions

View File

@@ -168,7 +168,7 @@ void pthread_cleanup_push(void (*routine)(void*), void* arg);
#define _pthread_equal(t1, t2) ((t1) == (t2))
#define _pthread_self() (_get_uthread()->id)
#define _pthread_self() (_get_uthread())
#define _pthread_testcancel() do { \
struct uthread* uthread = _get_uthread(); \