Add a function to test whether the current thread is the main thread.

This commit is contained in:
Jonathan G Rennison
2016-02-16 19:53:22 +00:00
parent 48e4c35fdc
commit e89efa8581
7 changed files with 48 additions and 0 deletions

View File

@@ -199,3 +199,7 @@ private:
if (thread != NULL) *thread = to;
return true;
}
void SetSelfAsMainThread() { }
bool IsMainThread() { return false; }