summaryrefslogtreecommitdiff
path: root/include/SDL_atomic.h
AgeCommit message (Collapse)AuthorFilesLines
2019-01-04Updated copyright for 2019Sam Lantinga1-1/+1
2018-11-23Added atomics support for armv8-a (Raspberry Pi 3)Sam Lantinga1-1/+1
2018-01-03Updated copyright for 2018Sam Lantinga1-1/+1
2017-11-19Added support for aarch64 memory barrier instructionSam Lantinga1-0/+3
2017-08-19Fixed building SDL applications with Visual Studio and the clang toolsetSam Lantinga1-1/+1
Also fixed building 64-bit SDL with clang. 32-bit doesn't build because of the inline assembly for C runtime support.
2017-08-18Add atomics for Watcom/x86 as inline asmOzkan Sezer1-0/+3
Partially fixes Bugzilla #3758.
2017-02-10Make sure the memory barrier functions are always available, and now they ↵Sam Lantinga1-3/+6
are implemented on Android __ARM_ARCH_5TE__
2017-01-01Updated copyright for 2017Sam Lantinga1-1/+1
2016-12-26Fixed bug 3517 - Compiler warnings with gcc -Wstrict-prototypesSam Lantinga1-2/+2
felix Compiling even a simple SDL2 'hello world' program with gcc -Wstrict-prototypes (GCC 6.2.1) results in warnings like: /usr/include/SDL2/SDL_gamecontroller.h:143:1: attention : function declaration isn't a prototype [-Wstrict-prototypes] extern DECLSPEC int SDLCALL SDL_GameControllerNumMappings(); ^~~~~~ It seems there is a missing 'void' between the parentheses.
2016-11-20Renaming of guard header names to quiet -Wreserved-id-macroSam Lantinga1-3/+3
Patch contributed by Sylvain
2016-01-02Updated copyright to 2016Sam Lantinga1-1/+1
2015-05-26Updated the copyright year to 2015Sam Lantinga1-1/+1
2014-12-18Initial merge of Emscripten port!Ryan C. Gordon1-1/+1
With this commit, you can compile SDL2 with Emscripten ( http://emscripten.org/ ), and make your SDL-based C/C++ program into a web app. This port was due to the efforts of several people, including: Charlie Birks, Sathyanarayanan Gunasekaran, Jukka Jylänki, Alon Zakai, Edward Rudd, Bruce Mitchener, and Martin Gerhardy. (Thanks, everyone!)
2014-07-052620 solaris port missing atomics if not using gccShawn Walker1-1/+9
2014-02-02Fixed bug 2374 - Update copyright for 2014...Sam Lantinga1-1/+1
Is it that time already??
2013-11-24Moved atomic API implementation out of headers.Ryan C. Gordon1-105/+6
2013-08-21OCD fixes: Adds a space after /* (glory to regular expressions!)Gabriel Jacobo1-2/+2
2013-08-21OCD fixes: Adds a space before */Gabriel Jacobo1-2/+2
2013-07-10Added PowerPC and ARM versions of the memory barrier functions.Sam Lantinga1-3/+23
2013-07-10Added release/acquire memory barriers to the atomic APISam Lantinga1-0/+27
* Added a destructor to clean up TLS memory at thread shutdown * Refactored the TLS code to have platform independent code and a small platform dependent core with a fallback to generic code if platform dependent functions fail. * Fixed recursion issues with SDL_GetErrBuf()
2013-05-18File style cleanup for the SDL 2.0 releaseSam Lantinga1-12/+8
2013-03-15Replace all the "static __inline__" functions with SDL_FORCE_INLINE.Ryan C. Gordon1-5/+5
2013-03-07Put the real SDL_AtomicCAS() and SDL_AtomicCASPtr() symbols into the library.Sam Lantinga1-4/+2
2013-02-25sdl2Jørgen P. Tjernø1-2/+2
- fix atomic header to compile happily under msvc 6.0
2013-02-15Happy New Year!Sam Lantinga1-1/+1
2012-09-26Make SDL_atomic.h depend on the void pointer size determined at compile timeGabriel Jacobo1-3/+3
rather than at configure time. As OS X supports lipo'ed versions of SDL for i386 and x86_64, a single set of headers that work for both architectures is desired.
2012-09-15Removed Windows CE support from SDL 2.0.Ryan C. Gordon1-1/+1
It's a long-dead platform, and we don't have any way to build for, test, or maintain it, so there's no sense in doing acrobatics to support it. If you need Windows CE support, use SDL 1.2. If you need Windows Phone support, send SDL 2.0 patches for the newer Windows Mobile platform.
2011-12-31Happy New Year!Sam Lantinga1-1/+1
2011-06-06Fixed gcc warnings for apps using SDL headers with -Wundef flag.Ryan C. Gordon1-1/+1
Fixes Bugzilla #1216. Thanks to Dimitris Zenios for the patch!
2011-04-08SDL 1.3 is now under the zlib license.Sam Lantinga1-20/+19
2011-02-11Happy 2011! :)Sam Lantinga1-1/+1
2011-02-07It's now possible to disable the fast atomic operations, at a huge ↵Sam Lantinga1-0/+3
performance penalty.
2011-02-01Spacing for documentation tweaksSam Lantinga1-1/+1
2011-02-01Tweak for documentationSam Lantinga1-3/+4
2011-01-25Added a FIFO test to the atomic test suite.Sam Lantinga1-0/+3
This is really useful because we might be able to use something like this for the SDL event queue.
2011-01-25More fixes for compilation on Visual StudioSam Lantinga1-56/+57
2011-01-25Fixed compile error on Visual C++Sam Lantinga1-1/+1
2011-01-25Improvements based on feedback from Anthony WilliamsSam Lantinga1-45/+75
2011-01-24Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008Sam Lantinga1-1/+1
2011-01-21Fixed bug #1097Sam Lantinga1-2/+8
There are problems with including intrin.h in C linkage in C++ compilation, and further conflicts between intrin.h and winnt.h on Visual Studio 2005.
2011-01-18Not all MinGW compilers have intrin.h, so we'll only use this with Visual ↵Sam Lantinga1-1/+1
Studio. That's actually okay, since gcc has the builtin atomic intrinsics. :)
2011-01-17Fixed compiler warnings using Windows intrinsicsSam Lantinga1-4/+4
2011-01-17Use compiler intrinsics, where availableSam Lantinga1-10/+11
2011-01-16Include windows.h in SDL_atomic.h by default, but don't include the atomic ↵Sam Lantinga1-4/+9
API in SDL.h This allows all SDL code to take advantage of the atomic intrinsics on Windows, but doesn't cause applications just including SDL.h to pull in windows.h
2011-01-16Don't hose code that isn't expecting a windows includeSam Lantinga1-1/+5
2011-01-16Added native atomic operations for Windows, Mac OS X, and gcc compiler ↵Sam Lantinga1-5/+60
intrinsics. Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier() Added an atomic test adapted from code by Michael Davidsaver
2011-01-15Updated the atomic API for better use casesSam Lantinga1-119/+113
2010-06-27Typo in documentationSam Lantinga1-1/+1
2010-01-24Fixed bug #926Sam Lantinga1-1/+1
Updated copyright to LGPL version 2.1 and year 2010
2009-10-19Partial fix for bug #859Sam Lantinga1-116/+91
Header file update from Ken for improved doxygen output