2001-04-26 16:45:43 +00:00
|
|
|
/*
|
2011-04-08 13:03:26 -07:00
|
|
|
Simple DirectMedia Layer
|
2019-01-04 22:01:14 -08:00
|
|
|
Copyright (C) 1997-2019 Sam Lantinga <slouken@libsdl.org>
|
2011-04-08 13:03:26 -07:00
|
|
|
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
|
|
warranty. In no event will the authors be held liable for any damages
|
|
|
|
arising from the use of this software.
|
|
|
|
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
|
|
including commercial applications, and to alter it and redistribute it
|
|
|
|
freely, subject to the following restrictions:
|
|
|
|
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
|
|
claim that you wrote the original software. If you use this software
|
|
|
|
in a product, an acknowledgment in the product documentation would be
|
|
|
|
appreciated but is not required.
|
|
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
|
|
misrepresented as being the original software.
|
|
|
|
3. This notice may not be removed or altered from any source distribution.
|
2001-04-26 16:45:43 +00:00
|
|
|
*/
|
2013-11-24 23:56:17 -05:00
|
|
|
#include "../../SDL_internal.h"
|
2001-04-26 16:45:43 +00:00
|
|
|
|
|
|
|
/* Thread management routines for SDL */
|
|
|
|
|
|
|
|
#include "SDL_thread.h"
|
2006-02-16 10:11:48 +00:00
|
|
|
#include "../SDL_systhread.h"
|
2001-04-26 16:45:43 +00:00
|
|
|
|
2013-06-02 01:12:29 -07:00
|
|
|
#ifdef SDL_PASSED_BEGINTHREAD_ENDTHREAD
|
|
|
|
int
|
|
|
|
SDL_SYS_CreateThread(SDL_Thread * thread, void *args,
|
|
|
|
pfnSDL_CurrentBeginThread pfnBeginThread,
|
|
|
|
pfnSDL_CurrentEndThread pfnEndThread)
|
|
|
|
#else
|
2006-07-10 21:04:37 +00:00
|
|
|
int
|
|
|
|
SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
|
2013-06-02 01:12:29 -07:00
|
|
|
#endif /* SDL_PASSED_BEGINTHREAD_ENDTHREAD */
|
2001-04-26 16:45:43 +00:00
|
|
|
{
|
2013-03-31 12:48:50 -04:00
|
|
|
return SDL_SetError("Threads are not supported on this platform");
|
2001-04-26 16:45:43 +00:00
|
|
|
}
|
|
|
|
|
2006-07-10 21:04:37 +00:00
|
|
|
void
|
2011-10-02 00:29:16 -04:00
|
|
|
SDL_SYS_SetupThread(const char *name)
|
2001-04-26 16:45:43 +00:00
|
|
|
{
|
2006-07-10 21:04:37 +00:00
|
|
|
return;
|
2001-04-26 16:45:43 +00:00
|
|
|
}
|
|
|
|
|
2009-12-16 04:48:11 +00:00
|
|
|
SDL_threadID
|
2006-07-10 21:04:37 +00:00
|
|
|
SDL_ThreadID(void)
|
2001-04-26 16:45:43 +00:00
|
|
|
{
|
2006-07-10 21:04:37 +00:00
|
|
|
return (0);
|
2001-04-26 16:45:43 +00:00
|
|
|
}
|
|
|
|
|
2011-03-25 10:47:49 -07:00
|
|
|
int
|
2011-03-25 12:44:06 -07:00
|
|
|
SDL_SYS_SetThreadPriority(SDL_ThreadPriority priority)
|
2011-03-25 10:47:49 -07:00
|
|
|
{
|
|
|
|
return (0);
|
|
|
|
}
|
|
|
|
|
2006-07-10 21:04:37 +00:00
|
|
|
void
|
|
|
|
SDL_SYS_WaitThread(SDL_Thread * thread)
|
2001-04-26 16:45:43 +00:00
|
|
|
{
|
2006-07-10 21:04:37 +00:00
|
|
|
return;
|
2001-04-26 16:45:43 +00:00
|
|
|
}
|
|
|
|
|
2013-11-14 00:52:39 -05:00
|
|
|
void
|
|
|
|
SDL_SYS_DetachThread(SDL_Thread * thread)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2006-07-10 21:04:37 +00:00
|
|
|
/* vi: set ts=4 sw=4 expandtab: */
|