UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
thread.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 
5 inline SDL_Thread *Com_CreateThread (int (*fn)(void *), const char *name, void *data = nullptr)
6 {
7 #if SDL_VERSION_ATLEAST(2,0,0)
8  return SDL_CreateThread(fn, name, data);
9 #else
10  return SDL_CreateThread(fn, data);
11 #endif
12 }
SDL_Thread * Com_CreateThread(int(*fn)(void *), const char *name, void *data=nullptr)
Definition: thread.h:5
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
Definition: r_gl.h:110
GLsizei const GLvoid * data
Definition: r_gl.h:152