Mercurial > sdl-ios-xcode
comparison src/atomic/dummy/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 | 72b542f34739 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3307:6fb7f38d20b6 | 3308:0e000afe3dc0 |
---|---|
105 the same time will go to the same lock. OTOH, accesses to different | 105 the same time will go to the same lock. OTOH, accesses to different |
106 data have only a 1/32 chance of hitting the same lock. That should | 106 data have only a 1/32 chance of hitting the same lock. That should |
107 pretty much eliminate the chances of several atomic operations on | 107 pretty much eliminate the chances of several atomic operations on |
108 different data from waiting on the same "big lock". If it isn't | 108 different data from waiting on the same "big lock". If it isn't |
109 then the table of locks can be expanded to a new size so long as | 109 then the table of locks can be expanded to a new size so long as |
110 the new size if a power of two. | 110 the new size is a power of two. |
111 */ | 111 */ |
112 | 112 |
113 static SDL_SpinLock locks[32] = { | 113 static SDL_SpinLock locks[32] = { |
114 0, 0, 0, 0, 0, 0, 0, 0, | 114 0, 0, 0, 0, 0, 0, 0, 0, |
115 0, 0, 0, 0, 0, 0, 0, 0, | 115 0, 0, 0, 0, 0, 0, 0, 0, |