libc: pthread: add pthread_mutex_t definition

This commit is contained in:
2026-04-01 18:49:27 +01:00
parent 0a231d2179
commit c6ca934852
+6
View File
@@ -1,6 +1,8 @@
#ifndef PTHREAD_H_
#define PTHREAD_H_
#include <mango/types.h>
#define __PTHREAD_ATTR_SIZE__ 32
typedef struct __pthread *pthread_t;
@@ -10,6 +12,10 @@ typedef struct __pthread_attr {
char __opaque[__PTHREAD_ATTR_SIZE__];
} pthread_attr_t;
typedef struct __pthread_mutex {
kern_futex_t __v;
} pthread_mutex_t;
extern int __pthread_init(void);
extern int pthread_create(