From 4b24631cd936cfe07b513e2e4c8733eea39f831b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Tue, 24 Mar 2020 13:08:19 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@970 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/core/piobject.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src_main/core/piobject.h b/src_main/core/piobject.h index afa76327..2e1e9207 100755 --- a/src_main/core/piobject.h +++ b/src_main/core/piobject.h @@ -633,11 +633,12 @@ public: if (i.performer) { i.performer->postQueuedEvent(__QueuedEvent(i.slot, i.dest, i.dest_o, sender)); } else { - if (sender->thread_safe_) i.dest_o->mutex_.lock(); + bool th = sender->thread_safe_; + if (th) i.dest_o->mutex_.lock(); i.dest_o->emitter_ = sender; ((void( *)(void * ))i.slot)(i.dest); i.dest_o->emitter_ = 0; - if (sender->thread_safe_) i.dest_o->mutex_.unlock(); + if (th) i.dest_o->mutex_.unlock(); } #ifdef PIP_CXX11_SUPPORT }