Ryan C. Gordon
1305933d4f
NetBSD: fixed issues with cpuinfo and pthread_setname_np (thanks, Thomas!).
...
Fixes Bugzilla #3176 .
2015-12-29 02:32:47 -05:00
David Ludwig
3ecf06a4a5
WinRT: bug-fix - SDL_SetThreadPriority() didn't work on WinRT 8.x platforms
...
WinRT 8.0 (Phone and non-Phone) didn't offer an API to set an already-created
thread's priority. WinRT 8.1 offered this API, along with several other
Win32 thread functions that were previously unavailable (in WinRT).
This change makes WinRT 8.1+ platforms use SDL's Win32 backend.
2015-11-26 13:51:03 -05:00
David Ludwig
94d3620fae
WinRT: fixed crash in SDL_CondWaitTimeout, when using Win10's MSVC runtime
2015-11-15 13:04:42 -05:00
Philipp Wiesemann
803a12820e
Removed not needed call to pthread_attr_getstacksize() for SDL_CreateThread().
2015-08-15 21:21:29 +02:00
Philipp Wiesemann
eebcb04cdd
PSP: Fixed error handling in SDL_SemWaitTimeout().
...
Signed integers were converted to unsigned before being checked if smaller 0.
Found by Cppcheck.
2015-07-15 21:11:24 +02:00
Philipp Wiesemann
cd374fb327
Android: Fixed two warnings.
2015-06-17 21:05:25 +02:00
Sam Lantinga
de541d5072
Partial fix for bug 2758 - Android issues with NDK r10c and API-21
...
Sylvain
When using API 21 and running on an old device (android < 5.0 ?) some function are missing.
functions are (at least) : signal, sigemptyset, atof, stpcpy (strcat and strcpy), srand, rand.
Very few modifications on SDL to get this working :
on SDL
======
Undefine android configuration :
HAVE_SIGNAL
HAVE_SIGACTION
HAVE_ATOF
In "SDL_systrhead.c", comment out the few block of lines with "sigemptyset".
Android.mk:
remove the compilation of "test" directory because it contains a few rand/srand calls
Also, there are more discussions about this in internet :
https://groups.google.com/forum/#!topic/android-ndk/RjO9WmG9pfE
http://stackoverflow.com/questions/25475055/android-ndk-load-library-cannot-locate-srand
2015-06-17 00:07:45 -07:00
Sam Lantinga
2c4c1cd804
Fixed bug 3011 - pthread/SDL_syssem.c requires _GNU_SOURCE
...
Ozkan Sezer
pthread/SDL_syssem.c requires _GNU_SOURCE predefined (like SDL_sysmutex.c),
otherwise sem_timedwait() prototype might not be available to it. Problem
seen with glibc-2.3.4.
2015-06-13 13:36:47 -07:00
Ryan C. Gordon
1c4d384a54
Uh, yeah, it helps to press "Save" before committing...
2015-05-26 21:30:41 -04:00
Ryan C. Gordon
906a4d69c1
Stack hint should look for 0, not -1, and not care about environment variables.
2015-05-26 21:19:23 -04:00
Ryan C. Gordon
bd539b9ed1
Added a hint to specify new thread stack size (thanks, Gabriel!).
...
Fixes Bugzilla #2019 .
(we'll do a better fix when we break the API in SDL 2.1.)
2015-05-26 21:13:27 -04:00
Sam Lantinga
78f2198e6c
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Philipp Wiesemann
e7bde43d07
Added missing guards in implementation for PSP.
...
Thanks to Martin Gerhardy for pointing this out.
2015-01-31 22:45:54 +01:00
Philipp Wiesemann
ee06d1bc3f
Added missing include statements in implementation for PSP.
...
SDL_internal.h should be included to support dynamic API and fix warnings.
2015-01-31 22:43:05 +01:00
Sam Lantinga
9a1344cf20
Fixed bug 2411 - Even if built with --enable-clock_gettime, SDL2 still calls gettimeofday()
...
Ben Swick
Makes SDL_syscond.c and SDL_syssem.c use clock_gettime(CLOCK_REALTIME) when HAVE_CLOCK_GETTIME is defined.
2014-11-28 04:37:50 -08:00
Sam Lantinga
3289794117
Fixed bug 2556 - add compilation flag -Wshadow
...
Sylvain
here's the full patch for Blit + RLE.
2014-06-25 00:43:10 -07:00
Sam Clegg
5cc37d29ec
Fix compiler warnings in Native Client and Linux builds.
2014-06-20 11:10:16 -03:00
Gabriel Jacobo
01a18871e3
Chrome's Native Client backend implementation
2014-06-06 15:45:59 -03:00
Brandon Schaefer
aa844a18c6
Fix warnings, only major one being an SDL_SetError not providing enough arguments.
2014-06-05 15:29:23 -07:00
Sam Lantinga
6800e72d96
Fixed the copyright date on files contributed by David Ludwig
2014-03-13 00:40:08 -07:00
David Ludwig
55712a534c
Fixed various build and runtime errors when using WinRT with VS2012.
2014-03-12 11:57:15 -04:00
David Ludwig
3fe569fba7
build fixes for most WinRT-related files
...
Still TODO: getting the D3D11 renderer back up and running in VC 2012.
2014-03-10 21:21:35 -04:00
Sam Lantinga
0ae88759fb
Integrated David Ludwig's support for Windows RT
2014-03-09 11:36:47 -07:00
Sam Lantinga
32547d0c59
Fixed line endings on WinRT source code
2014-03-09 11:06:11 -07: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
David Ludwig
020c4c5046
WinRT: implemented SDL_DetachThread() for WinRT
2013-11-28 22:24:13 -05:00
David Ludwig
c96c4f3dc4
WinRT: merged with latest SDL 2.x/HG code
...
SDL 2.x recently accepted patches to enable OpenGL ES 2 support via Google's ANGLE library. The thought is to try to eventually merge SDL/WinRT's OpenGL code with SDL-official's.
2013-11-28 22:09:21 -05:00
Ryan C. Gordon
03d5719413
Make internal SDL sources include SDL_internal.h instead of SDL_config.h
...
The new header will include SDL_config.h, but allows for other global stuff.
2013-11-24 23:56:17 -05:00
Ryan C. Gordon
a71d349f7c
Added SDL_DetachThread() API.
2013-11-14 00:52:39 -05:00
Ryan C. Gordon
ee4465fe4f
Started BeOS removal: merged BeOS thread and pthread code.
...
Haiku uses most of the standard pthread API, with a few #ifdefs where we
still need to fallback onto the old BeOS APIs.
BeOS, however, does not support pthreads (or maybe doesn't support it well),
so I'm unplugging support for the platform with this changeset. Be Inc went
out of business in 2001.
2013-11-13 22:35:26 -05:00
David Ludwig
529fcd3ee3
WinRT: merged with SDL 2.0.1 codebase
2013-10-27 21:26:46 -04:00
Sam Lantinga
ee2991652c
Added a macro SDL_TICKS_PASSED() to correctly compare two 32-bit tick values.
...
Went through the code and used the macro and fixed a couple places that were using incorrect timestamp comparisons.
2013-10-20 20:42:55 -07:00
Ryan C. Gordon
8cd386dc39
Disable Win32 thread naming again. See Bugzilla #2089 .
2013-10-20 23:08:45 -04:00
Sam Lantinga
2451a67018
Fixed building using MinGW
...
Our SDL_windows.h needed to be included before anything else so UNICODE is defined.
2013-10-17 23:02:29 -07:00
David Ludwig
2fda2633de
WinRT: removed some old debugging code from SDL_mutexP and SDL_mutexV
2013-08-20 22:18:48 -04:00
David Ludwig
5187b903b9
WinRT: made a note that WinRT doesn't appear to support modifying a thread's priority
2013-08-20 22:16:09 -04:00
David Ludwig
772a538b7f
WinRT: made SDL_ThreadID() return the native thread ID, rather than a fake one
2013-08-20 22:04:09 -04:00
David Ludwig
6dbbcb0aab
WinRT: made the C++11-based threading backend only try to catch exceptions that it knows it (the threading APIs) might throw, rather than all exceptions
2013-08-20 21:54:34 -04:00
David Ludwig
1ae5d8dea3
WinRT: build fixes and additional WinRT-related integrations with SDL 2.0.0
2013-08-13 20:09:52 -04:00
David Ludwig
373ffd0dac
WinRT: merged with SDL 2.0.0 codebase (aka. SDL hg rev d6a8fa507a45)
2013-08-12 22:29:55 -04:00
Sam Lantinga
e66f593a02
Fixed crash if SDL_GetThreadName() is passed a NULL thread.
2013-08-08 12:21:26 -07:00
Sam Lantinga
9747d8daf0
Add a timeout to the clipboard code to avoid hangs when using synergy. When a timeout is detected we set the clipboard so that we own it so that future timeouts are avoided. Testing has confirmed that this timeout and setting only occurs when the clipboard contains text from my Windows machine.
...
That is, if you copy from the Windows clipboard and then launch Dota and then repeatedly paste to a terminal window then the text will disappear when Dota hits the timeout. If you then select on the Linux side you can repeatedly paste. If you select again on Windows then the text will get cleared again.
Note that Dota only looks at the clipboard when it has focus.
CR: Saml
2013-07-23 12:59:29 -07:00
Sam Lantinga
ca9a19ea4c
Fixed building with cygwin
...
Note that building with cygwin gcc results in a DLL that depends on cygwin1.dll
2013-07-21 23:01:01 -07:00
Ryan C. Gordon
89f836cacf
One more compiler warning.
2013-07-20 19:59:31 -04:00
Ryan C. Gordon
ee3cbb1fa6
Fixed some compiler warnings that Visual Studio reported.
2013-07-20 19:51:51 -04:00
Ryan C. Gordon
19b1e1f53f
Disable thread naming on Win64 for now.
...
We can't use _try/_except without the C runtime, and we can't use inline
asm with the Win64 compiler. We'll need to move this to an .asm file or
something later.
2013-09-07 13:47:14 -04:00
Sam Lantinga
c7f635ec01
Fixed time comparison and explicitly delay 1 ms instead of an arbitrary scheduled time.
2013-09-06 20:45:08 -07:00
Sam Lantinga
0a093f4eea
Fixed bug 2076 - OpenGL doesn't work with --disable-threads
...
stepik-777
Thread local storage is used to store current window and current opengl context. OpenGL worked before this changeset: 7596 (45e5c263c096)
2013-09-05 07:15:26 -07:00
Ryan C. Gordon
314ecabd38
Enabled thread naming on Windows.
...
This is now done without compiler or C runtime support for __try/__except.
(Granted, it uses Visual Studio-style inline asm, but still...)
2013-08-31 01:36:38 -04:00