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.
This commit is contained in:
Sam Lantinga 2011-01-25 23:23:52 -08:00
parent fc5dc0ddb2
commit bbc1ba223a
2 changed files with 396 additions and 0 deletions

View file

@ -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