Add a function to test whether the current thread is the main thread.
This commit is contained in:
@@ -199,3 +199,7 @@ private:
|
||||
if (thread != NULL) *thread = to;
|
||||
return true;
|
||||
}
|
||||
|
||||
void SetSelfAsMainThread() { }
|
||||
|
||||
bool IsMainThread() { return false; }
|
||||
|
Reference in New Issue
Block a user