LibC: Implement pthread_cond_* using a futex

This commit is contained in:
2025-08-05 00:22:51 +03:00
parent dfdfb7cdaf
commit eb7922ab88
2 changed files with 23 additions and 22 deletions

View File

@@ -10,6 +10,8 @@ __BEGIN_DECLS
#include <bits/types/pthread_attr_t.h>
#include <bits/types/pthread_t.h>
#include <stdint.h>
typedef int pthread_once_t;
typedef unsigned pthread_key_t;
@@ -36,7 +38,7 @@ typedef struct
struct _pthread_cond_block
{
struct _pthread_cond_block* next;
int signaled;
uint32_t futex;
};
typedef struct
{