mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 20:45:36 +08:00
call __mg_join_all_message_threads()
This commit is contained in:
@@ -557,6 +557,11 @@ int InitGUI (int argc, const char* agr[])
|
||||
|
||||
void TerminateGUI (int rcByGUI)
|
||||
{
|
||||
#ifdef _MGHAVE_VIRTUAL_WINDOW
|
||||
/* Since 5.0.0 */
|
||||
__mg_join_all_message_threads ();
|
||||
#endif
|
||||
|
||||
mg_DestroyFreeQMSGList ();
|
||||
mg_TerminateAccel ();
|
||||
mg_TerminateControlClass ();
|
||||
|
||||
@@ -590,6 +590,9 @@ void GUIAPI TerminateGUI (int not_used)
|
||||
{
|
||||
__mg_enter_terminategui = 1;
|
||||
|
||||
/* Since 5.0.0 */
|
||||
__mg_join_all_message_threads ();
|
||||
|
||||
pthread_join (__mg_desktop, NULL);
|
||||
|
||||
/* DesktopProc() will set __mg_quiting_stage to _MG_QUITING_STAGE_EVENT */
|
||||
|
||||
Reference in New Issue
Block a user