]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - thread_null.c
CSQC Getlight - added globals:
[xonotic/darkplaces.git] / thread_null.c
1 #include "quakedef.h"
2 #include "thread.h"
3
4 int Thread_Init(void)
5 {
6         return 0;
7 }
8
9 void Thread_Shutdown(void)
10 {
11 }
12
13 qboolean Thread_HasThreads(void)
14 {
15         return false;
16 }
17
18 void *Thread_CreateMutex(void)
19 {
20         return NULL;
21 }
22
23 void Thread_DestroyMutex(void *mutex)
24 {
25 }
26
27 int Thread_LockMutex(void *mutex)
28 {
29         return -1;
30 }
31
32 int Thread_UnlockMutex(void *mutex)
33 {
34         return -1;
35 }
36
37 void *Thread_CreateCond(void)
38 {
39         return NULL;
40 }
41
42 void Thread_DestroyCond(void *cond)
43 {
44 }
45
46 int Thread_CondSignal(void *cond)
47 {
48         return -1;
49 }
50
51 int Thread_CondBroadcast(void *cond)
52 {
53         return -1;
54 }
55
56 int Thread_CondWait(void *cond, void *mutex)
57 {
58         return -1;
59 }
60
61 void *Thread_CreateThread(int (*fn)(void *), void *data)
62 {
63         return NULL;
64 }
65
66 int Thread_WaitThread(void *thread, int retval)
67 {
68         return retval;
69 }
70