From 2989687dedaadca966ac1cd3e277a1b64fe45e1f Mon Sep 17 00:00:00 2001 From: apo Date: Sat, 1 Dec 2007 15:16:58 +0000 Subject: [PATCH] Another fix, on thread safety --- src/VISU_I/VISU_Result_i.cc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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)); } -- 2.39.2