File: thread_null.c

package info (click to toggle)
darkplaces 0~20180412~beta1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,200 kB
  • sloc: ansic: 176,886; makefile: 485; pascal: 455; perl: 372; objc: 245; sh: 102
file content (82 lines) | stat: -rw-r--r-- 1,427 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#include "quakedef.h"
#include "thread.h"

int Thread_Init(void)
{
	return 0;
}

void Thread_Shutdown(void)
{
}

qboolean Thread_HasThreads(void)
{
	return false;
}

void *_Thread_CreateMutex(const char *filename, int fileline)
{
	return NULL;
}

void _Thread_DestroyMutex(void *mutex, const char *filename, int fileline)
{
}

int _Thread_LockMutex(void *mutex, const char *filename, int fileline)
{
	return -1;
}

int _Thread_UnlockMutex(void *mutex, const char *filename, int fileline)
{
	return -1;
}

void *_Thread_CreateCond(const char *filename, int fileline)
{
	return NULL;
}

void _Thread_DestroyCond(void *cond, const char *filename, int fileline)
{
}

int _Thread_CondSignal(void *cond, const char *filename, int fileline)
{
	return -1;
}

int _Thread_CondBroadcast(void *cond, const char *filename, int fileline)
{
	return -1;
}

int _Thread_CondWait(void *cond, void *mutex, const char *filename, int fileline)
{
	return -1;
}

void *_Thread_CreateThread(int (*fn)(void *), void *data, const char *filename, int fileline)
{
	return NULL;
}

int _Thread_WaitThread(void *thread, int retval, const char *filename, int fileline)
{
	return retval;
}

void *_Thread_CreateBarrier(unsigned int count, const char *filename, int fileline)
{
	return NULL;
}

void _Thread_DestroyBarrier(void *barrier, const char *filename, int fileline)
{
}

void _Thread_WaitBarrier(void *barrier, const char *filename, int fileline)
{
}