Added inheritance for task pinning. Closes #598 for real.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user