comparison src/atomic/linux/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 d430982cd5cc
children f7b03b6838cb
comparison
equal deleted inserted replaced
3307:6fb7f38d20b6 3308:0e000afe3dc0
124 the same time will go to the same lock. OTOH, accesses to different 124 the same time will go to the same lock. OTOH, accesses to different
125 data have only a 1/32 chance of hitting the same lock. That should 125 data have only a 1/32 chance of hitting the same lock. That should
126 pretty much eliminate the chances of several atomic operations on 126 pretty much eliminate the chances of several atomic operations on
127 different data from waiting on the same "big lock". If it isn't 127 different data from waiting on the same "big lock". If it isn't
128 then the table of locks can be expanded to a new size so long as 128 then the table of locks can be expanded to a new size so long as
129 the new size if a power of two. 129 the new size is a power of two.
130 */ 130 */
131 131
132 static SDL_SpinLock locks[32] = { 132 static SDL_SpinLock locks[32] = {
133 0, 0, 0, 0, 0, 0, 0, 0, 133 0, 0, 0, 0, 0, 0, 0, 0,
134 0, 0, 0, 0, 0, 0, 0, 0, 134 0, 0, 0, 0, 0, 0, 0, 0,