Atomic reference counting for tasks.
This commit is contained in:
parent
a5fe66e706
commit
279844ce9f
8 changed files with 43 additions and 77 deletions
|
|
@ -61,8 +61,8 @@ void notify_message::process() {
|
|||
break;
|
||||
case JOIN: {
|
||||
if (task->dead() == false) {
|
||||
rust_proxy<rust_task> *proxy = new rust_proxy<rust_task>(_source);
|
||||
task->tasks_waiting_to_join.append(proxy);
|
||||
// FIXME: this should be dead code.
|
||||
assert(false);
|
||||
} else {
|
||||
send(WAKEUP, "wakeup", _target, _source);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue