Merge branch 'master' of git://github.com/thepowersgang/acess2
[tpg/acess2.git] / Usermode / Libraries / libpthread.so_src / thread.c
1 /*
2  * Acess2 libpthread
3  * - By John Hodge (thePowersGang)
4  *
5  * thread.c
6  * - Thread management for pthreads
7  */
8 #include <pthread.h>
9 #include <assert.h>
10
11 int pthread_create(pthread_t *threadptr, const pthread_attr_t * attrs, void* (*fcn)(void*), void* arg)
12 {
13         assert(!"TODO: pthread_create");
14         return 0;
15 }
16 int pthread_detach(pthread_t thread)
17 {
18         assert(!"TODO: pthread_detach");
19         return 0;
20 }
21 int pthread_join(pthread_t thread, void **retvalptr)
22 {
23         assert(!"TODO: pthread_join");
24         return 0;
25 }
26 int pthread_cancel(pthread_t thread)
27 {
28         assert(!"TODO: pthread_cancel");
29         return 0;
30 }
31 int pthread_equal(pthread_t t1, pthread_t t2)
32 {
33         assert(!"TODO: pthread_equal");
34         return 0;
35 }
36 pthread_t pthread_self(void)
37 {
38         assert(!"TODO: pthread_self");
39         return (pthread_t){0};
40 }
41 void pthread_exit(void* retval)
42 {
43         assert(!"TODO: pthread_create");
44 }

UCC git Repository :: git.ucc.asn.au