MyOS Libc
pthread.h
Go to the documentation of this file.
1 
5 #ifndef PTHREAD_H
6 #define PTHREAD_H
7 
8 #include <sys/types.h>
9 
10 typedef pid_t pthread_t;
11 typedef int pthread_attr_t;
12 
21 int pthread_create(pthread_t *restrict thread,
22  const pthread_attr_t *restrict attr,
23  void *(*start_routine)(void*), void *restrict arg);
24 
29 void pthread_exit(void *value_ptr);
30 
31 #endif
pthread_create
int pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, void *(*start_routine)(void *), void *restrict arg)
Definition: pthread.c:8
pthread_attr_t
int pthread_attr_t
Created as dummy.
Definition: pthread.h:11
pthread_t
pid_t pthread_t
Represents a thread.
Definition: pthread.h:10
pthread_exit
void pthread_exit(void *value_ptr)
Definition: pthread.c:19