From 692b6c7227fbcd916e5e3dbfa53d01db0319244e Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 6 Apr 2012 10:59:24 -0700 Subject: Fixing multithreading issue... You can't signal a task from another thread, that's what the async event is for! --- src/Task.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Task.cc b/src/Task.cc index 644e302..0a213be 100644 --- a/src/Task.cc +++ b/src/Task.cc @@ -157,7 +157,8 @@ Balau::Events::TaskEvent::TaskEvent(Task * taskWaited) : m_taskWaited(taskWaited void Balau::Events::TaskEvent::signal() { if (m_distant) m_evt.send(); - doSignal(); + else + doSignal(); } void Balau::Events::TaskEvent::gotOwner(Task * task) { -- cgit v1.2.3