diff 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
line wrap: on
line diff
--- a/include/SDL_atomic.h	Tue Jan 25 18:02:41 2011 -0800
+++ b/include/SDL_atomic.h	Tue Jan 25 23:23:52 2011 -0800
@@ -44,6 +44,9 @@
  * subtle issues that can arise here:
  * http://msdn.microsoft.com/en-us/library/ee418650%28v=vs.85%29.aspx
  *
+ * There's also lots of good information here:
+ * http://www.1024cores.net/home/lock-free-algorithms
+ *
  * These operations may or may not actually be implemented using
  * processor specific atomic operations. When possible they are
  * implemented as true processor specific atomic operations. When that