CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Jon Daniel <[EMAIL PROTECTED]> 05/08/09 08:15:50
Modified files:
src : thread.cpp
Log message:
clean up
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/thread.cpp.diff?tr1=1.11&tr2=1.12&r1=text&r2=text
Patches:
Index: wesnoth/src/thread.cpp
diff -u wesnoth/src/thread.cpp:1.11 wesnoth/src/thread.cpp:1.12
--- wesnoth/src/thread.cpp:1.11 Tue Aug 9 08:02:55 2005
+++ wesnoth/src/thread.cpp Tue Aug 9 08:15:50 2005
@@ -1,4 +1,4 @@
-/* $Id: thread.cpp,v 1.11 2005/08/09 08:02:55 j_daniel Exp $ */
+/* $Id: thread.cpp,v 1.12 2005/08/09 08:15:50 j_daniel Exp $ */
/*
Copyright (C) 2003-5 by David White <[EMAIL PROTECTED]>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
@@ -122,10 +122,9 @@
{
const int res = SDL_CondWaitTimeout(cond_,m.m_,timeout);
switch(res) {
- //the SDL documentation appears backward on when these results are
returned
- case 0: return WAIT_TIMEOUT;
- case SDL_MUTEX_TIMEDOUT: return WAIT_OK;
- default: return WAIT_ERROR;
+ case 0: return WAIT_OK;
+ case SDL_MUTEX_TIMEDOUT: return WAIT_TIMEOUT;
+ default: return WAIT_ERROR;
}
}