libc: pthread: implement mutexes

This commit is contained in:
2026-07-19 13:31:22 +01:00
parent 6317060138
commit 810f741442
4 changed files with 57 additions and 1 deletions
@@ -0,0 +1,8 @@
#include <magenta/futex.h>
#include <pthread.h>
int pthread_mutex_unlock(pthread_mutex_t *mut)
{
mut->__v = 0;
futex_wake(&mut->__v, 1, FUTEX_PRIVATE);
}