Revision: 1933 http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1933&view=rev Author: rorthomas Date: 2011-05-13 13:26:51 +0000 (Fri, 13 May 2011)
Log Message: ----------- fixed hangup on window close Modified Paths: -------------- trunk/source/main/framework/AppStateManager.cpp Modified: trunk/source/main/framework/AppStateManager.cpp =================================================================== --- trunk/source/main/framework/AppStateManager.cpp 2011-05-13 13:21:41 UTC (rev 1932) +++ trunk/source/main/framework/AppStateManager.cpp 2011-05-13 13:26:51 UTC (rev 1933) @@ -78,8 +78,10 @@ #endif if(OgreFramework::getSingletonPtr()->m_pRenderWnd->isClosed()) { + // unlock before shutdown + pthread_mutex_unlock(&lock); + // shutdown locks the mutex itself shutdown(); - pthread_mutex_unlock(&lock); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Rigsofrods-devel mailing list Rigsofrods-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel