lib: c: add pthread implementation
This commit is contained in:
24
lib/libc/pthread/thread/pthread.h
Normal file
24
lib/libc/pthread/thread/pthread.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef _THREAD_PTHREAD_H_
|
||||
#define _THREAD_PTHREAD_H_
|
||||
|
||||
#include <mango/types.h>
|
||||
|
||||
enum pthread_flags {
|
||||
THREAD_DETACHED = 0x01u,
|
||||
};
|
||||
|
||||
struct __pthread {
|
||||
struct __pthread *thr_self;
|
||||
enum pthread_flags thr_flags;
|
||||
kern_handle_t thr_handle;
|
||||
void *thr_map_base;
|
||||
size_t thr_map_size;
|
||||
void *thr_result;
|
||||
};
|
||||
|
||||
extern void __pthread_unmap_exit(
|
||||
kern_handle_t address_space,
|
||||
void *unmap_base,
|
||||
size_t unmap_length);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user