Update of /cvsroot/sharedaemon/sharedaemon-ui-web/src/thread
In directory sc8-pr-cvs1:/tmp/cvs-serv13218/src/thread
Modified Files:
Thread.cpp
Log Message:
28/12/2003 Mikael Barbeaux
* Fixed Condition bugs under Win 95 / 98 / Me. The
SignalObjectAndWait kernel function wasn't implemented
on thoses operating systems.
Index: Thread.cpp
===================================================================
RCS file: /cvsroot/sharedaemon/sharedaemon-ui-web/src/thread/Thread.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Thread.cpp 26 Dec 2003 22:56:42 -0000 1.2
+++ Thread.cpp 28 Dec 2003 12:52:38 -0000 1.3
@@ -132,8 +132,9 @@
throw ThreadException(ThreadExcp, "Cannot allocate the thread.",
"Thread::start");
#ifdef _WIN32_
+ DWORD thread_id;
if((*thread = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) launch,
- this, 0 ,0)) == 0)
+ this, 0 , &thread_id)) == 0)
throw ThreadException(ThreadExcp, "Cannot create the thread.",
"Thread::start");
#else
|