git-svn-id: svn://db.shs.com.ru/pip@970 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2020-03-24 13:08:19 +00:00
parent 398700b1c3
commit 4b24631cd9

View File

@@ -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
}