summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2012-04-06 10:59:24 -0700
committerPixel <pixel@nobis-crew.org>2012-04-06 10:59:29 -0700
commit692b6c7227fbcd916e5e3dbfa53d01db0319244e (patch)
tree4f549cbd9e4bd96b4caf8623c919e450559fbc8d
parent9bdb93b01b037358a209af040b561fca3a51851b (diff)
Fixing multithreading issue...
You can't signal a task from another thread, that's what the async event is for!
-rw-r--r--src/Task.cc3
1 files changed, 2 insertions, 1 deletions
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) {