Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
176 lines (143 loc) · 2.74 KB

SDL_atomic.c

File metadata and controls

176 lines (143 loc) · 2.74 KB
 
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2009 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
*/
#ifdef SDL_ATOMIC_LINUX
#include "SDL.h"
#include "SDL_config.h"
#include "SDL_atomic.h"
Uint32
SDL_AtomicExchange32(Uint32 * ptr, Uint32 value)
{
return 0;
}
SDL_bool
SDL_AtomicCompareThenSet32(Uint32 * ptr, Uint32 oldvalue, Uint32 newvalue)
{
return SDL_false;
}
SDL_bool
SDL_AtomicTestThenSet32(Uint32 * ptr)
{
return SDL_false;
}
void
SDL_AtomicClear32(Uint32 * ptr)
{
}
Uint32
SDL_AtomicFetchThenIncrement32(Uint32 * ptr)
{
return 0;
}
Uint32
SDL_AtomicFetchThenDecrement32(Uint32 * ptr)
{
return 0;
}
Uint32
SDL_AtomicFetchThenAdd32(Uint32 * ptr, Uint32 value)
{
return 0;
}
Uint32
SDL_AtomicFetchThenSubtract32(Uint32 * ptr, Uint32 value)
{
return 0;
}
Uint32
SDL_AtomicIncrementThenFetch32(Uint32 * ptr)
{
return 0;
}
Uint32
SDL_AtomicDecrementThenFetch32(Uint32 * ptr)
{
return 0;
}
Uint32
SDL_AtomicAddThenFetch32(Uint32 * ptr, Uint32 value)
{
return 0;
}
Uint32
SDL_AtomicSubtractThenFetch32(Uint32 * ptr, Uint32 value)
{
return 0;
}
#ifdef SDL_HAS_64BIT_TYPE
Uint64
SDL_AtomicExchange64(Uint64 * ptr, Uint64 value)
{
return 0;
}
SDL_bool
SDL_AtomicCompareThenSet64(Uint64 * ptr,
Uint64 oldvalue, Uint64 newvalue)
{
return SDL_false;
}
SDL_bool
SDL_AtomicTestThenSet64(Uint64 * ptr)
{
return SDL_false;
}
void
SDL_AtomicClear64(Uint64 * ptr)
{
}
Uint64
SDL_AtomicFetchThenIncrement64(Uint64 * ptr)
{
return 0;
}
Uint64
SDL_AtomicFetchThenDecrement64(Uint64 * ptr)
{
return 0;
}
Uint64
SDL_AtomicFetchThenAdd64(Uint64 * ptr, Uint64 value)
{
return 0;
}
Uint64
SDL_AtomicFetchThenSubtract64(Uint64 * ptr, Uint64 value)
{
return 0;
}
Uint64
SDL_AtomicIncrementThenFetch64(Uint64 * ptr)
{
return 0;
}
Uint64
SDL_AtomicDecrementThenFetch64(Uint64 * ptr)
{
return 0;
}
Uint64
SDL_AtomicAddThenFetch64(Uint64 * ptr, Uint64 value)
{
return 0;
}
Uint64
SDL_AtomicSubtractThenFetch64(Uint64 * ptr, Uint64 value)
{
return 0;
}
#endif
#endif