IsGUIThread tells you if the current thread is a GUI thread - that is a thread that is running a message loop.
What it actually does is check if the current thread has GUI thread info (see GetGUIThreadInfo in MSDN.
I have never used this function but one possible use I would guess is to allow code to defer slow tasks to a worker thread if the current thread is a GUI thread.
IsGUIThread
tells you if the current thread is a GUI thread - that is a thread that is running a message loop.What it actually does is check if the current thread has GUI thread info (see
GetGUIThreadInfo
in MSDN.I have never used this function but one possible use I would guess is to allow code to defer slow tasks to a worker thread if the current thread is a GUI thread.