projects
/
imager.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
add mutex functions to the API
[imager.git]
/
mutexnull.c
1
/*
2
dummy mutexes, for non-threaded builds
3
*/
4
5
#include "imageri.h"
6
7
#include <pthread.h>
8
9
/* documented in mutexwin.c */
10
11
struct i_mutex_tag {
12
int dummy;
13
};
14
15
i_mutex_t
16
i_mutex_new(void) {
17
i_mutex_t m;
18
19
m = mymalloc(sizeof(*m));
20
21
return m;
22
}
23
24
void
25
i_mutex_destroy(i_mutex_t m) {
26
myfree(m);
27
}
28
29
void
30
i_mutex_lock(i_mutex_t m) {
31
(void)m;
32
}
33
34
void
35
i_mutex_unlock(i_mutex_t m) {
36
(void)m;
37
}