summaryrefslogtreecommitdiff
path: root/codec.c
blob: 5beaa43b9d2ac3570250cb7b8881952ae2ad5e13 (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
#include "codec.h"
#include "threading.h"

static uintptr_t mutex;

void
codec_init_locking (void) {
    mutex = mutex_create ();
}

void
codec_free_locking (void) {
    mutex_free (mutex);
}

void
codec_lock (void) {
    mutex_lock (mutex);
}

void
codec_unlock (void) {
    mutex_unlock (mutex);
}