Revision: 40782
http://brlcad.svn.sourceforge.net/brlcad/?rev=40782&view=rev
Author: davidloman
Date: 2010-09-29 11:30:53 +0000 (Wed, 29 Sep 2010)
Log Message:
-----------
Wire in return value processing for pre/postRunHook()s. It either one returns
false, the run loop aborts.
Modified Paths:
--------------
rt^3/trunk/src/utility/ControlledThread.cxx
Modified: rt^3/trunk/src/utility/ControlledThread.cxx
===================================================================
--- rt^3/trunk/src/utility/ControlledThread.cxx 2010-09-29 11:24:18 UTC (rev
40781)
+++ rt^3/trunk/src/utility/ControlledThread.cxx 2010-09-29 11:30:53 UTC (rev
40782)
@@ -56,13 +56,15 @@
}
void ControlledThread::run() {
- this->preRunHook();
+ if(!this->preRunHook())
+ return;
+
this->runStatus = true;
-
this->_run();
+ this->runStatus = false;
- this->postRunHook();
- this->runStatus = false;
+ if(!this->postRunHook())
+ return;
}
void ControlledThread::_run() {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits