Mercurial > sdl-ios-xcode
comparison include/SDL_atomic.h @ 5100:470ede30189c
Added a FIFO test to the atomic test suite.
This is really useful because we might be able to use something like this
for the SDL event queue.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 25 Jan 2011 23:23:52 -0800 |
parents | b938ad843e52 |
children | aee04c635ec6 |
comparison
equal
deleted
inserted
replaced
5099:b938ad843e52 | 5100:470ede30189c |
---|---|
41 * ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | 41 * ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
42 * | 42 * |
43 * You can find out a little more about lockless programming and the | 43 * You can find out a little more about lockless programming and the |
44 * subtle issues that can arise here: | 44 * subtle issues that can arise here: |
45 * http://msdn.microsoft.com/en-us/library/ee418650%28v=vs.85%29.aspx | 45 * http://msdn.microsoft.com/en-us/library/ee418650%28v=vs.85%29.aspx |
46 * | |
47 * There's also lots of good information here: | |
48 * http://www.1024cores.net/home/lock-free-algorithms | |
46 * | 49 * |
47 * These operations may or may not actually be implemented using | 50 * These operations may or may not actually be implemented using |
48 * processor specific atomic operations. When possible they are | 51 * processor specific atomic operations. When possible they are |
49 * implemented as true processor specific atomic operations. When that | 52 * implemented as true processor specific atomic operations. When that |
50 * is not possible the are implemented using locks that *do* use the | 53 * is not possible the are implemented using locks that *do* use the |