use non-deprecated encoding ids for freetype 2
[imager.git] / mutexnull.c
CommitLineData
24c9233d
TC
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
11struct i_mutex_tag {
12 int dummy;
13};
14
15i_mutex_t
16i_mutex_new(void) {
17 i_mutex_t m;
18
a8b8be5b
TC
19 m = malloc(sizeof(*m));
20 if (!m)
21 i_fatal(3, "Cannot allocate mutex object");
24c9233d
TC
22
23 return m;
24}
25
26void
27i_mutex_destroy(i_mutex_t m) {
a8b8be5b 28 free(m);
24c9233d
TC
29}
30
31void
32i_mutex_lock(i_mutex_t m) {
33 (void)m;
34}
35
36void
37i_mutex_unlock(i_mutex_t m) {
38 (void)m;
39}