[wpdev-commits] wolfpack console_win.cpp,1.21,1.22
Brought to you by:
rip,
thiagocorrea
|
From: <thi...@us...> - 2004-01-21 05:03:39
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv25174
Modified Files:
console_win.cpp
Log Message:
fixed thread priority and did a small naming change.
Index: console_win.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/console_win.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** console_win.cpp 20 Jan 2004 02:06:00 -0000 1.21
--- console_win.cpp 21 Jan 2004 05:03:37 -0000 1.22
***************
*** 362,366 ****
}
! class cGuiThread : public QThread
{
LPSTR cmdLine;
--- 362,366 ----
}
! class cServerThread : public QThread
{
LPSTR cmdLine;
***************
*** 369,373 ****
public:
! cGuiThread( LPSTR lpCmdLine ) : cmdLine( lpCmdLine ) {}
int returnValue() { return returnValue_; }
--- 369,373 ----
public:
! cServerThread( LPSTR lpCmdLine ) : cmdLine( lpCmdLine ) {}
int returnValue() { return returnValue_; }
***************
*** 487,492 ****
ShowWindow( mainWindow, SW_NORMAL );
! cGuiThread guiThread( lpCmdLine );
! guiThread.start( QThread::LowPriority );
MSG msg;
--- 487,491 ----
ShowWindow( mainWindow, SW_NORMAL );
! cServerThread serverThread( lpCmdLine );
MSG msg;
***************
*** 528,534 ****
keeprun = 0; // We quit, so let's quit the server too
! guiThread.wait();
! return guiThread.returnValue();
}
--- 527,533 ----
keeprun = 0; // We quit, so let's quit the server too
! serverThread.wait();
! return serverThread.returnValue();
}
|