Philipp Wiesemann
7ffc9b62a7
Updated library name in header file.
2017-02-19 21:05:26 +01:00
Sam Lantinga
d77ab77a7a
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Sam Lantinga
9cc7ce9008
Renaming of guard header names to quiet -Wreserved-id-macro
...
Patch contributed by Sylvain
2016-11-20 21:34:54 -08:00
Sam Lantinga
255c182471
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Sam Lantinga
78f2198e6c
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Philipp Wiesemann
7f81de018c
Fixed example in header file.
...
Did not compile because of typo in function name and missing argument.
2014-09-06 23:20:14 +02:00
Sam Lantinga
dba255c1e5
Fixed bug 2374 - Update copyright for 2014...
...
Is it that time already??
2014-02-02 00:53:27 -08:00
Ryan C. Gordon
3dfc14ade2
Implemented the Dynamic API magic.
2013-12-09 16:03:18 -05:00
Ryan C. Gordon
b444dd2714
Renamed things named after BeOS to be named after Haiku instead.
2013-11-14 11:51:24 -05:00
Ryan C. Gordon
a71d349f7c
Added SDL_DetachThread() API.
2013-11-14 00:52:39 -05:00
Philipp Wiesemann
e0130f52c4
Changed some documentation comments in header files to be used by doxygen.
2013-08-18 11:08:52 +02:00
Sam Lantinga
7fcffeefe0
Fixed bug 1983 - SDL_thread.h broken under MinGW crosscompiling environment
...
q66
after updating SDL2 to the latest RC I'm unable to build my game engine under mingw crosscompiling environment for Windows (32bit, hosted on freebsd 64bit).
The error is in SDL_thread.h with messages like this: http://codepad.org/jEQXd3Yq
The problem is, while _beginthreadex return type is correctly mapped to uintptr_t (as specified by Microsoft), the return type under mingw is unsigned long int (same size, different signature), resulting in the error above.
The reason it didn't error before is this: http://codepad.org/8FAbKAxz
You can see the _beginthreadex case is only used without HAVE_LIBC defined; at one point though, SDL_config_windows.h was changed like this:
-/* Enabled for SDL 1.2 (binary compatibility) */
-#define HAVE_LIBC 1
+/* This is disabled by default to avoid C runtime dependencies and manifest requirements */
resulting in these errors.
2013-07-27 03:44:03 -07:00
Ryan C. Gordon
ee3cbb1fa6
Fixed some compiler warnings that Visual Studio reported.
2013-07-20 19:51:51 -04:00
Dimitris Zenios
9637ceba41
Fixed gcc warnings for apps using SDL headers with -Wstrict-prototypes flag.
2013-07-12 09:55:58 +03:00
Sam Lantinga
f5306d72d0
Added release/acquire memory barriers to the atomic API
...
* 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-07-10 18:31:17 -07:00
Sam Lantinga
9c0dea8e15
Implemented an API for thread-local storage: SDL_TLSCreate(), SDL_TLSSet(), SDL_TLSGet()
2013-07-10 02:32:04 -07:00
Sam Lantinga
0d9b661db8
File style cleanup for the SDL 2.0 release
2013-05-18 14:17:52 -07:00
Sam Lantinga
019c60c1e8
Happy New Year!
2013-02-15 08:47:44 -08:00
Ryan C. Gordon
b3b40aac16
Removed Windows CE support from SDL 2.0.
...
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.
2012-09-15 10:59:39 -04:00
Sam Lantinga
e256711bb9
Happy New Year!
2011-12-31 09:28:07 -05:00
Ryan C. Gordon
2ef51927fe
1.3 API CHANGE: Add support for naming threads.
2011-10-02 00:29:16 -04:00
Ryan C. Gordon
b84e7104b1
Clean up the win32 compiler warnings for SDL threads, in the 1.3 branch.
2011-09-12 13:36:38 -04:00
Sam Lantinga
6196aa221e
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
73247db7d8
The API sets the priority for the current thread, not an arbitrary thread.
...
Implemented thread priority as the 'nice' value on Linux. High priority threads require root permissions (you shouldn't give your game root permissions though!)
2011-03-25 12:44:06 -07:00
Sam Lantinga
eeb5f362e4
Implemented SDL_SetThreadPriority()
2011-03-25 10:47:49 -07:00
Sam Lantinga
a2cdcf5486
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
ec39fffe84
Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
2011-01-24 15:46:11 -08:00
Sam Lantinga
08ad787807
Fixed bug #925
...
Changed "win32" to "windows"
2011-01-20 18:04:05 -08:00
Sam Lantinga
f0480c0501
Added a typedef for the thread function to simplify documentation
2010-08-28 22:56:52 -07:00
Sam Lantinga
b8da79e726
SDL_KillThread() is no longer supported - it was always dangerous! :)
2010-05-24 22:56:36 -07:00
Sam Lantinga
7052036491
Fixed bug #926
...
Updated copyright to LGPL version 2.1 and year 2010
2010-01-24 21:10:53 +00:00
Sam Lantinga
75e75ae0c3
Fixed bug #741
...
The thread ID is an unsigned long so it can hold pthread_t so people can do naughty things with it.
I'm going to be adding additional useful thread API functions, but this should prevent crashes in people's existing code on 64-bit architectures.
2009-12-16 04:48:11 +00:00
Sam Lantinga
27294b7a4e
Partial fix for bug #859
...
Header file update from Ken for improved doxygen output
2009-10-19 13:31:58 +00:00
Sam Lantinga
5bee043a89
Removed outdated OS/2 support
2009-09-19 06:43:45 +00:00
Sam Lantinga
befb0f7f42
Updated copyright date
2008-12-08 00:27:32 +00:00
Sam Lantinga
825b0b08f1
Fixed Bugzilla bug #205
...
Removed SDL_KillThread() from the API, as it isn't safe on many platforms.
2008-11-24 00:18:42 +00:00
Sam Lantinga
c91d18d6ad
indent is evil
2006-10-28 16:48:03 +00:00
Ryan C. Gordon
7f17eb8863
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
2006-10-17 09:15:21 +00:00
Sam Lantinga
6bc598ea61
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
2006-07-10 21:04:37 +00:00
Sam Lantinga
0e9999cdab
Fixed thread callback calling conventions, updated OS/2 DLL name to SDL12.dll
2006-05-17 18:57:04 +00:00
Sam Lantinga
0fa63c4bba
Enabled libc support on Win32, so we don't break binary compatibility in 1.2
2006-03-06 07:42:36 +00:00
Sam Lantinga
d1d0afa53e
Fixed declarations to match mingw includes
2006-03-06 06:00:45 +00:00
Sam Lantinga
223544e90d
Updated WinCE support by Dmitry (with some tweaks)
...
Converted the disk audio driver to SDL_RWops for portability
2006-03-04 08:24:35 +00:00
Sam Lantinga
aaf71291d0
Updated OS/2 build, yay!
2006-02-26 19:30:21 +00:00
Sam Lantinga
190b425364
Use consistent identifiers for the various platforms we support.
...
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
2006-02-21 08:46:50 +00:00
Sam Lantinga
769424426d
More header massaging... works great on Windows. ;-)
2006-02-10 06:48:43 +00:00
Sam Lantinga
5022a01e6c
*** empty log message ***
2006-02-10 03:19:02 +00:00
Sam Lantinga
82bfaee73a
It's now possible to build SDL without any C runtime at all on Windows,
...
using Visual C++ 2005
2006-02-06 08:28:51 +00:00
Sam Lantinga
808a16717c
Updated copyright information and removed rcs id lines (problematic in branch merges)
...
I batch edited these files, so please let me know if I've accidentally removed anybody's
credit here.
2006-02-01 06:32:25 +00:00
Ryan C. Gordon
406ef7dae9
OS/2 port!
...
This was mostly, if not entirely, written by "Doodle" and "Caetano":
doodle@scenergy.dfmk.hu
daniel@caetano.eng.br
--ryan.
2005-11-23 07:29:56 +00:00