Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1661 - trunk/UserInterface


Chronological Thread 
  • From: abe@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1661 - trunk/UserInterface
  • Date: Fri, 17 Aug 2007 15:59:44 -0600 (MDT)

Author: abe
Date: Fri Aug 17 15:59:44 2007
New Revision: 1661

Modified:
   trunk/UserInterface/AutomatorUI.cc
Log:

Use a transaction to invoke termination callback, instead of just
invoking the callback (appears to work better with python callbacks).



M    AutomatorUI.cc


Modified: trunk/UserInterface/AutomatorUI.cc
==============================================================================
--- trunk/UserInterface/AutomatorUI.cc  (original)
+++ trunk/UserInterface/AutomatorUI.cc  Fri Aug 17 15:59:44 2007
@@ -35,7 +35,9 @@
 using namespace Manta;
 using namespace SCIRun;
 
-AutomatorUI::AutomatorUI( MantaInterface *manta_interface_, int 
warmup_frames_, bool is_detached_ ) :
+AutomatorUI::AutomatorUI( MantaInterface *manta_interface_,
+                          int warmup_frames_, bool is_detached_ ) :
+
   this_thread( 0 ),
   startup_semaphore( "AutomatorUI semaphore", 0 ),
   manta_interface( manta_interface_ ),
@@ -79,7 +81,9 @@
 
     // Call the termination callback if it exists.
     if (terminate_callback) {
-      terminate_callback->call();
+      // terminate_callback->call();
+      getMantaInterface()->addTransaction("AutomatorUI Termination",
+                                          terminate_callback );      
     }
   }
   while (automator_mode == AUTOMATOR_KEEPALIVE);




  • [Manta] r1661 - trunk/UserInterface, abe, 08/17/2007

Archive powered by MHonArc 2.6.16.

Top of page