2012-04-13 07:42:24 +04:00
|
|
|
#ifndef PTHREAD_H
|
|
|
|
#define PTHREAD_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <syscall.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint32_t id;
|
|
|
|
char * stack;
|
|
|
|
void * ret_val;
|
|
|
|
} pthread_t;
|
|
|
|
typedef unsigned int pthread_attr_t;
|
|
|
|
|
|
|
|
int pthread_create(pthread_t * thread, pthread_attr_t * attr, void *(*start_routine)(void *), void * arg);
|
|
|
|
void pthread_exit(void * value);
|
2014-04-22 06:46:38 +04:00
|
|
|
int pthread_kill(pthread_t thread, int sig);
|
2012-04-13 07:42:24 +04:00
|
|
|
|
|
|
|
int clone(uintptr_t,uintptr_t,void*);
|
|
|
|
int gettid();
|
|
|
|
|
|
|
|
#endif
|