Added inheritance for task pinning. Closes #598 for real.

This commit is contained in:
Eric Holk
2011-06-29 18:56:34 -07:00
parent 63dcd325b9
commit b3e5b5bd05
3 changed files with 9 additions and 0 deletions

View File

@@ -528,9 +528,15 @@ rust_task::free(void *mem, memory_region::memory_region_type type) {
}
void rust_task::pin() {
I(this->sched, running_on != -1);
pinned_on = running_on;
}
void rust_task::pin(int id) {
I(this->sched, running_on == -1);
pinned_on = id;
}
void rust_task::unpin() {
pinned_on = -1;
}