libc: pthread: add pthread_mutex_t definition
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
#ifndef PTHREAD_H_
|
#ifndef PTHREAD_H_
|
||||||
#define PTHREAD_H_
|
#define PTHREAD_H_
|
||||||
|
|
||||||
|
#include <mango/types.h>
|
||||||
|
|
||||||
#define __PTHREAD_ATTR_SIZE__ 32
|
#define __PTHREAD_ATTR_SIZE__ 32
|
||||||
|
|
||||||
typedef struct __pthread *pthread_t;
|
typedef struct __pthread *pthread_t;
|
||||||
@@ -10,6 +12,10 @@ typedef struct __pthread_attr {
|
|||||||
char __opaque[__PTHREAD_ATTR_SIZE__];
|
char __opaque[__PTHREAD_ATTR_SIZE__];
|
||||||
} pthread_attr_t;
|
} pthread_attr_t;
|
||||||
|
|
||||||
|
typedef struct __pthread_mutex {
|
||||||
|
kern_futex_t __v;
|
||||||
|
} pthread_mutex_t;
|
||||||
|
|
||||||
extern int __pthread_init(void);
|
extern int __pthread_init(void);
|
||||||
|
|
||||||
extern int pthread_create(
|
extern int pthread_create(
|
||||||
|
|||||||
Reference in New Issue
Block a user