Mercurial > sdl-ios-xcode
comparison src/atomic/linux/SDL_atomic.c @ 3199:3e1bf2b8bd81
This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
It also update configure.in to compile the linux version of the library. The three versions are all dummies
implementations that do nothing. They are being checked in as place holders. Mostly, I just wanted to get
place holders and the configure.in checked in.
author | Bob Pendleton <bob@pendleton.com> |
---|---|
date | Wed, 24 Jun 2009 20:04:08 +0000 |
parents | |
children | ef2c029a3a9d |
comparison
equal
deleted
inserted
replaced
3198:fefe74ca604d | 3199:3e1bf2b8bd81 |
---|---|
1 /* | |
2 SDL - Simple DirectMedia Layer | |
3 Copyright (C) 1997-2009 Sam Lantinga | |
4 | |
5 This library is free software; you can redistribute it and/or | |
6 modify it under the terms of the GNU Lesser General Public | |
7 License as published by the Free Software Foundation; either | |
8 version 2.1 of the License, or (at your option) any later version. | |
9 | |
10 This library is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 Lesser General Public License for more details. | |
14 | |
15 You should have received a copy of the GNU Lesser General Public | |
16 License along with this library; if not, write to the Free Software | |
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | |
19 Sam Lantinga | |
20 slouken@libsdl.org | |
21 */ | |
22 | |
23 #ifdef SDL_ATOMIC_LINUX | |
24 | |
25 #include "SDL.h" | |
26 #include "SDL_config.h" | |
27 #include "SDL_atomic.h" | |
28 | |
29 Uint32 | |
30 SDL_AtomicExchange32(Uint32 * ptr, Uint32 value) | |
31 { | |
32 return 0; | |
33 } | |
34 | |
35 SDL_bool | |
36 SDL_AtomicCompareThenSet32(Uint32 * ptr, Uint32 oldvalue, Uint32 newvalue) | |
37 { | |
38 return SDL_false; | |
39 } | |
40 | |
41 SDL_bool | |
42 SDL_AtomicTestThenSet32(Uint32 * ptr) | |
43 { | |
44 return SDL_false; | |
45 } | |
46 | |
47 void | |
48 SDL_AtomicClear32(Uint32 * ptr) | |
49 { | |
50 } | |
51 | |
52 Uint32 | |
53 SDL_AtomicFetchThenIncrement32(Uint32 * ptr) | |
54 { | |
55 return 0; | |
56 } | |
57 | |
58 Uint32 | |
59 SDL_AtomicFetchThenDecrement32(Uint32 * ptr) | |
60 { | |
61 return 0; | |
62 } | |
63 | |
64 Uint32 | |
65 SDL_AtomicFetchThenAdd32(Uint32 * ptr, Uint32 value) | |
66 { | |
67 return 0; | |
68 } | |
69 | |
70 Uint32 | |
71 SDL_AtomicFetchThenSubtract32(Uint32 * ptr, Uint32 value) | |
72 { | |
73 return 0; | |
74 } | |
75 | |
76 Uint32 | |
77 SDL_AtomicIncrementThenFetch32(Uint32 * ptr) | |
78 { | |
79 return 0; | |
80 } | |
81 | |
82 Uint32 | |
83 SDL_AtomicDecrementThenFetch32(Uint32 * ptr) | |
84 { | |
85 return 0; | |
86 } | |
87 | |
88 Uint32 | |
89 SDL_AtomicAddThenFetch32(Uint32 * ptr, Uint32 value) | |
90 { | |
91 return 0; | |
92 } | |
93 | |
94 Uint32 | |
95 SDL_AtomicSubtractThenFetch32(Uint32 * ptr, Uint32 value) | |
96 { | |
97 return 0; | |
98 } | |
99 | |
100 | |
101 #ifdef SDL_HAS_64BIT_TYPE | |
102 | |
103 Uint64 | |
104 SDL_AtomicExchange64(Uint64 * ptr, Uint64 value) | |
105 { | |
106 return 0; | |
107 } | |
108 | |
109 SDL_bool | |
110 SDL_AtomicCompareThenSet64(Uint64 * ptr, | |
111 Uint64 oldvalue, Uint64 newvalue) | |
112 { | |
113 return SDL_false; | |
114 } | |
115 | |
116 SDL_bool | |
117 SDL_AtomicTestThenSet64(Uint64 * ptr) | |
118 { | |
119 return SDL_false; | |
120 } | |
121 | |
122 void | |
123 SDL_AtomicClear64(Uint64 * ptr) | |
124 { | |
125 } | |
126 | |
127 Uint64 | |
128 SDL_AtomicFetchThenIncrement64(Uint64 * ptr) | |
129 { | |
130 return 0; | |
131 } | |
132 | |
133 Uint64 | |
134 SDL_AtomicFetchThenDecrement64(Uint64 * ptr) | |
135 { | |
136 return 0; | |
137 } | |
138 | |
139 Uint64 | |
140 SDL_AtomicFetchThenAdd64(Uint64 * ptr, Uint64 value) | |
141 { | |
142 return 0; | |
143 } | |
144 | |
145 Uint64 | |
146 SDL_AtomicFetchThenSubtract64(Uint64 * ptr, Uint64 value) | |
147 { | |
148 return 0; | |
149 } | |
150 | |
151 Uint64 | |
152 SDL_AtomicIncrementThenFetch64(Uint64 * ptr) | |
153 { | |
154 return 0; | |
155 } | |
156 | |
157 Uint64 | |
158 SDL_AtomicDecrementThenFetch64(Uint64 * ptr) | |
159 { | |
160 return 0; | |
161 } | |
162 | |
163 Uint64 | |
164 SDL_AtomicAddThenFetch64(Uint64 * ptr, Uint64 value) | |
165 { | |
166 return 0; | |
167 } | |
168 | |
169 Uint64 | |
170 SDL_AtomicSubtractThenFetch64(Uint64 * ptr, Uint64 value) | |
171 { | |
172 return 0; | |
173 } | |
174 | |
175 #endif | |
176 #endif |