xoreos
0.0.5
|
Threading system helpers. More...
#include <cassert>
#include "src/common/fallthrough.h"
#include <SDL_thread.h>
#include "src/common/types.h"
#include "src/common/error.h"
#include "src/common/threads.h"
Go to the source code of this file.
Namespaces | |
Common | |
Functions | |
void | Common::initThreads () |
Initialize the global threading system. More... | |
bool | Common::initedThreads () |
Was the global threading system initialized? More... | |
bool | Common::isMainThread () |
Returns true if called from the main thread, false otherwise. More... | |
void | Common::enforceMainThread () |
Throws an Exception if called from a non-main thread. More... | |
Variables | |
START_IGNORE_IMPLICIT_FALLTHROUGH static STOP_IGNORE_IMPLICIT_FALLTHROUGH bool | threadsInited = false |
static SDL_threadID | threadsMainID |
|
static |
Definition at line 38 of file threads.cpp.
Referenced by Common::initedThreads(), Common::initThreads(), and Common::isMainThread().
|
static |
Definition at line 39 of file threads.cpp.
Referenced by Common::initThreads(), and Common::isMainThread().