From: smh Date: Fri, 2 Apr 2004 08:51:11 +0000 (+0000) Subject: Debug SALOME_Event X-Git-Tag: mergeto_Event_Server_20Apr04~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7b690aff469256623165a74b33c0115ae9c21150;p=modules%2Fvisu.git Debug SALOME_Event Add release() method --- diff --git a/src/VISU_Event/VISU_Event.cxx b/src/VISU_Event/VISU_Event.cxx index b1d0837d..d0df7c1d 100644 --- a/src/VISU_Event/VISU_Event.cxx +++ b/src/VISU_Event/VISU_Event.cxx @@ -34,7 +34,7 @@ * Constructor */ //=========================================================== -VISU_Event::VISU_Event( int eventType, bool wait ) : SALOME_Event ( eventType, wait ) +VISU_Event::VISU_Event( int eventType, bool wait, bool autoRelease ) : SALOME_Event ( eventType, wait, autoRelease ) { } diff --git a/src/VISU_Event/VISU_Event.h b/src/VISU_Event/VISU_Event.h index dde06bc8..f535ef9c 100644 --- a/src/VISU_Event/VISU_Event.h +++ b/src/VISU_Event/VISU_Event.h @@ -42,7 +42,7 @@ public: ShowTestObjectEvent, LastEvent = VISU_START_EVENT + 1000 }; - VISU_Event( int eventType, bool wait ); + VISU_Event( int eventType, bool wait, bool autoRelease = false ); virtual ~VISU_Event(); // Custom data can be added here... diff --git a/src/VISU_I/VISU_Gen_i.cc b/src/VISU_I/VISU_Gen_i.cc index 89a9c84d..e8a8f82d 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -896,6 +896,7 @@ namespace VISU{ if(myMutex){ VISU_Event* ve = new VISU_Event( VISU_Event::CreateTestViewEvent, true ); ve->process(); + ve->release(); return; } myVisuGen->CreateTestView(); @@ -905,6 +906,7 @@ namespace VISU{ if(myMutex){ VISU_Event* ve = new VISU_Event( VISU_Event::ShowTestObjectEvent, true ); ve->process(); + ve->release(); return; } myVisuGen->ShowTestObject();