/project/jni/sdl-1.3/src/thread/SDL_thread_c.h

https://github.com/aichunyu/FFPlayer · C Header · 61 lines · 31 code · 6 blank · 24 comment · 1 complexity · 50e59cd6a698f42b6fec59863fe317e2 MD5 · raw file

  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2012 Sam Lantinga <slouken@libsdl.org>
  4. This software is provided 'as-is', without any express or implied
  5. warranty. In no event will the authors be held liable for any damages
  6. arising from the use of this software.
  7. Permission is granted to anyone to use this software for any purpose,
  8. including commercial applications, and to alter it and redistribute it
  9. freely, subject to the following restrictions:
  10. 1. The origin of this software must not be misrepresented; you must not
  11. claim that you wrote the original software. If you use this software
  12. in a product, an acknowledgment in the product documentation would be
  13. appreciated but is not required.
  14. 2. Altered source versions must be plainly marked as such, and must not be
  15. misrepresented as being the original software.
  16. 3. This notice may not be removed or altered from any source distribution.
  17. */
  18. #include "SDL_config.h"
  19. #ifndef _SDL_thread_c_h
  20. #define _SDL_thread_c_h
  21. /* Need the definitions of SYS_ThreadHandle */
  22. #if SDL_THREADS_DISABLED
  23. #include "generic/SDL_systhread_c.h"
  24. #elif SDL_THREAD_BEOS
  25. #include "beos/SDL_systhread_c.h"
  26. #elif SDL_THREAD_EPOC
  27. #include "epoc/SDL_systhread_c.h"
  28. #elif SDL_THREAD_PTHREAD
  29. #include "pthread/SDL_systhread_c.h"
  30. #elif SDL_THREAD_WINDOWS
  31. #include "windows/SDL_systhread_c.h"
  32. #elif SDL_THREAD_NDS
  33. #include "nds/SDL_systhread_c.h"
  34. #else
  35. #error Need thread implementation for this platform
  36. #include "generic/SDL_systhread_c.h"
  37. #endif
  38. #include "../SDL_error_c.h"
  39. /* This is the system-independent thread info structure */
  40. struct SDL_Thread
  41. {
  42. SDL_threadID threadid;
  43. SYS_ThreadHandle handle;
  44. int status;
  45. SDL_error errbuf;
  46. char *name;
  47. void *data;
  48. };
  49. /* This is the function called to run a thread */
  50. extern void SDL_RunThread(void *data);
  51. #endif /* _SDL_thread_c_h */
  52. /* vi: set ts=4 sw=4 expandtab: */