Add a function to test whether the current thread is the main thread.
This commit is contained in:
@@ -33,3 +33,7 @@ public:
|
||||
{
|
||||
return new ThreadMutex_None();
|
||||
}
|
||||
|
||||
void SetSelfAsMainThread() { }
|
||||
|
||||
bool IsMainThread() { return true; }
|
||||
|
Reference in New Issue
Block a user