From: Matze B. <mat...@us...> - 2002-05-11 14:40:02
|
Update of /cvsroot/planeshift/planeshift/src/common/sal In directory usw-pr-cvs1:/tmp/cvs-serv860/src/common/sal Modified Files: ptask.cpp Log Message: improved behaviour for connection errors Index: ptask.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/sal/ptask.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ptask.cpp 23 Apr 2002 18:24:03 -0000 1.4 --- ptask.cpp 11 May 2002 14:39:59 -0000 1.5 *************** *** 433,437 **** --- 433,442 ---- void task::sleep(timeout_t msec) { + // XXX: this locks the app sometimes ?!? + #if 0 static event never_happened; never_happened.wait_with_timeout(msec); + #endif + usleep (msec * 1000); } + |