comparison Gui/win32/interface.c @ 22889:d78278e1ece6

thread compatibility fixes for Win9x. based on patch by sergemp at mail dot ru.
author vayne
date Tue, 03 Apr 2007 15:57:55 +0000
parents 1c5ea79749ea
children
comparison
equal deleted inserted replaced
22888:43b8a7c3595c 22889:d78278e1ece6
489 return 0; 489 return 0;
490 } 490 }
491 491
492 void guiInit(void) 492 void guiInit(void)
493 { 493 {
494 DWORD threadId;
494 memset(&guiIntfStruct, 0, sizeof(guiIntfStruct)); 495 memset(&guiIntfStruct, 0, sizeof(guiIntfStruct));
495 /* Create The gui thread */ 496 /* Create The gui thread */
496 if (!mygui) 497 if (!mygui)
497 mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] Creating GUI Thread 0x%04x\n", 498 {
498 (int) CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) GuiThread, NULL, 0, NULL)); 499 CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) GuiThread, NULL, 0, &threadId);
500 mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] Creating GUI Thread 0x%04x\n", threadId);
501 }
499 502
500 /* Wait until the gui is created */ 503 /* Wait until the gui is created */
501 while(!mygui) Sleep(100); 504 while(!mygui) Sleep(100);
502 mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] Gui Thread started\n"); 505 mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] Gui Thread started\n");
503 } 506 }