31 #include <SDL_thread.h> 62 throw Exception(
"Unsafe function called in non-main thread");
START_IGNORE_IMPLICIT_FALLTHROUGH static STOP_IGNORE_IMPLICIT_FALLTHROUGH bool threadsInited
#define START_IGNORE_IMPLICIT_FALLTHROUGH
bool isMainThread()
Returns true if called from the main thread, false otherwise.
Basic exceptions to throw.
Threading system helpers.
void initThreads()
Initialize the global threading system.
Low-level type definitions to handle fixed width types portably.
#define STOP_IGNORE_IMPLICIT_FALLTHROUGH
bool initedThreads()
Was the global threading system initialized?
void enforceMainThread()
Throws an Exception if called from a non-main thread.
static SDL_threadID threadsMainID
Compiler-specific defines to mark an implicit switch-case fallthrough.