Move ports out into their own file, add data_message and make communication system use it (and proxies) instead of existing token scheme.

This commit is contained in:
Michael Bebenita
2010-07-28 16:46:13 -07:00
committed by Graydon Hoare
parent 4ff8e15128
commit 4246d567b7
14 changed files with 257 additions and 179 deletions

View File

@@ -64,7 +64,6 @@ rust_task::rust_task(rust_dom *dom, rust_task *spawner) :
cond(NULL),
supervisor(spawner),
idx(0),
waiting_tasks(dom),
rendezvous_ptr(0),
alarm(this)
{
@@ -372,19 +371,6 @@ rust_task::unsupervise()
supervisor = NULL;
}
void
rust_task::notify_waiting_tasks()
{
while (waiting_tasks.length() > 0) {
log(rust_log::ALL, "notify_waiting_tasks: %d",
waiting_tasks.length());
rust_task *waiting_task = waiting_tasks.pop()->receiver;
if (!waiting_task->dead()) {
waiting_task->wakeup(this);
}
}
}
void
rust_task::notify_tasks_waiting_to_join() {
while (tasks_waiting_to_join.is_empty() == false) {