LibC: Implement pthread_barrier

This is yet another bad sched_yield implementation :D
This commit is contained in:
2025-04-21 19:52:14 +03:00
parent d012c538c3
commit 60cb392e97
3 changed files with 153 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ struct uthread
#define PTHREAD_MUTEX_RECURSIVE 3
#define PTHREAD_SPIN_INITIALIZER (pthread_spinlock_t)0
#define PTHREAD_COND_INITIALIZER (pthread_cond_t)0
#define PTHREAD_COND_INITIALIZER (pthread_cond_t){ { CLOCK_REALTIME, 0 }, PTHREAD_SPIN_INITIALIZER, NULL }
#define PTHREAD_MUTEX_INITIALIZER (pthread_mutex_t){ { PTHREAD_MUTEX_DEFAULT, false }, 0, 0 }
#define PTHREAD_RWLOCK_INITIALIZER (pthread_rwlock_t){ { false }, 0, 0 }