From: apo Date: Sat, 1 Dec 2007 15:16:58 +0000 (+0000) Subject: Another fix, on thread safety X-Git-Tag: mergeto_BR_Dev_For_4_0_07-Dec-07~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2989687dedaadca966ac1cd3e277a1b64fe45e1f;p=modules%2Fvisu.git Another fix, on thread safety --- diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index 1af2d9dd..33fdd9da 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -236,7 +236,23 @@ void VISU::Result_i ::UpdateObservers() { - myUpdateObserverSignal(); + struct TEvent: public SALOME_Event + { + VISU::Result_i::TUpdateObserverSignal& myUpdateObserverSignal; + + TEvent(VISU::Result_i::TUpdateObserverSignal& theUpdateObserverSignal): + myUpdateObserverSignal(theUpdateObserverSignal) + {} + + virtual + void + Execute() + { + myUpdateObserverSignal(); + } + }; + + ProcessVoidEvent(new TEvent(myUpdateObserverSignal)); }