LibC: Rewrite pthread_mutex using a futex

This commit is contained in:
2025-08-21 01:49:55 +03:00
parent 1d6c08478d
commit fb61cab70d
3 changed files with 72 additions and 71 deletions

View File

@@ -26,7 +26,8 @@ typedef struct
typedef struct
{
pthread_mutexattr_t attr;
pthread_t locker;
uint32_t futex;
uint32_t waiters;
unsigned lock_depth;
} pthread_mutex_t;