blob: af73fd617c4efaee1b1b844f30a6cfaa4e00e793 (
plain)
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
#include <bh/internal/thread.h>
int bh_thread_init(bh_thread_t *thread,
bh_task_t *task)
{
(void)thread;
(void)task;
return -1;
}
bh_thread_t *bh_thread_new(bh_task_t *task)
{
(void)task;
return NULL;
}
int bh_thread_join(bh_thread_t *thread)
{
(void)thread;
return -1;
}
int bh_thread_detach(bh_thread_t *thread)
{
(void)thread;
return -1;
}
int bh_mutex_init(bh_mutex_t *mutex)
{
(void)mutex;
return -1;
}
void bh_mutex_destroy(bh_mutex_t *mutex)
{
(void)mutex;
}
int bh_mutex_lock(bh_mutex_t *mutex)
{
(void)mutex;
return -1;
}
int bh_mutex_try_lock(bh_mutex_t *mutex)
{
(void)mutex;
return -1;
}
int bh_mutex_unlock(bh_mutex_t *mutex)
{
(void)mutex;
return -1;
}
int bh_semaphore_init(bh_semaphore_t *semaphore, int count)
{
(void)semaphore;
(void)count;
return -1;
}
void bh_semaphore_destroy(bh_semaphore_t *semaphore)
{
(void)semaphore;
}
int bh_semaphore_post(bh_semaphore_t *semaphore)
{
(void)semaphore;
return -1;
}
int bh_semaphore_wait(bh_semaphore_t *semaphore)
{
(void)semaphore;
return -1;
}
int bh_semaphore_wait_for(bh_semaphore_t *semaphore,
unsigned long timeout)
{
(void)semaphore;
return -1;
}
int bh_semaphore_try_wait(bh_semaphore_t *semaphore)
{
(void)semaphore;
return -1;
}
int bh_cond_init(bh_cond_t *cond)
{
(void)cond;
return -1;
}
void bh_cond_destroy(bh_cond_t *cond)
{
(void)cond;
}
int bh_cond_wait(bh_cond_t *cond,
bh_mutex_t *mutex)
{
(void)cond;
(void)mutex;
return -1;
}
int bh_cond_wait_for(bh_cond_t *cond,
bh_mutex_t *mutex,
unsigned long timeout)
{
(void)cond;
(void)mutex;
(void)timeout;
return -1;
}
int bh_cond_signal(bh_cond_t *cond)
{
(void)cond;
return -1;
}
int bh_cond_broadcast(bh_cond_t *cond)
{
(void)cond;
return -1;
}
int bh_thread_pool_init(bh_thread_pool_t *pool,
size_t size)
{
(void)pool;
(void)size;
return -1;
}
bh_thread_pool_t *bh_thread_pool_new(size_t size)
{
(void)size;
return NULL;
}
|