blob: a78765f29edf65918969eaf0f6e26a7961d00d54 (
plain) (
blame)
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
|
// license:BSD-3-Clause
// copyright-holders:Aaron Giles
//============================================================
//
// minisync.c - Minimal core synchronization functions
//
//============================================================
#include "osdcore.h"
//============================================================
// osd_lock_alloc
//============================================================
osd_lock *osd_lock_alloc(void)
{
// the minimal implementation does not support threading
// just return a dummy value here
return (osd_lock *)1;
}
//============================================================
// osd_lock_acquire
//============================================================
void osd_lock_acquire(osd_lock *lock)
{
// the minimal implementation does not support threading
// the acquire always "succeeds"
}
//============================================================
// osd_lock_try
//============================================================
int osd_lock_try(osd_lock *lock)
{
// the minimal implementation does not support threading
// the acquire always "succeeds"
return TRUE;
}
//============================================================
// osd_lock_release
//============================================================
void osd_lock_release(osd_lock *lock)
{
// the minimal implementation does not support threading
// do nothing here
}
//============================================================
// osd_lock_free
//============================================================
void osd_lock_free(osd_lock *lock)
{
// the minimal implementation does not support threading
// do nothing here
}
|