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

@@ -33,3 +33,7 @@ public:
{
return new ThreadMutex_None();
}
void SetSelfAsMainThread() { }
bool IsMainThread() { return true; }