Atomic reference counting for tasks.

This commit is contained in:
Eric Holk 2011-07-27 14:51:25 -07:00
parent a5fe66e706
commit 279844ce9f
8 changed files with 43 additions and 77 deletions

View file

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