comparison src/atomic/win32/SDL_atomic.c @ 3308:0e000afe3dc0

fixed a spelling error in the documentation.
author Bob Pendleton <bob@pendleton.com>
date Fri, 25 Sep 2009 19:26:21 +0000
parents a8ec88ff18c7
children 3889325ca987
comparison
equal deleted inserted replaced
3307:6fb7f38d20b6 3308:0e000afe3dc0
114 the same time will go to the same lock. OTOH, accesses to different 114 the same time will go to the same lock. OTOH, accesses to different
115 data have only a 1/32 chance of hitting the same lock. That should 115 data have only a 1/32 chance of hitting the same lock. That should
116 pretty much eliminate the chances of several atomic operations on 116 pretty much eliminate the chances of several atomic operations on
117 different data from waiting on the same "big lock". If it isn't 117 different data from waiting on the same "big lock". If it isn't
118 then the table of locks can be expanded to a new size so long as 118 then the table of locks can be expanded to a new size so long as
119 the new size if a power of two. 119 the new size is a power of two.
120 */ 120 */
121 121
122 static SDL_SpinLock locks[32] = { 122 static SDL_SpinLock locks[32] = {
123 0, 0, 0, 0, 0, 0, 0, 0, 123 0, 0, 0, 0, 0, 0, 0, 0,
124 0, 0, 0, 0, 0, 0, 0, 0, 124 0, 0, 0, 0, 0, 0, 0, 0,