rt: Remove task pinning. Does nothing
This commit is contained in:
@@ -245,7 +245,6 @@ rust_task::rust_task(rust_scheduler *sched, rust_task_list *state,
|
||||
next_port_id(0),
|
||||
rendezvous_ptr(0),
|
||||
running_on(-1),
|
||||
pinned_on(-1),
|
||||
local_region(&sched->srv->local_region),
|
||||
boxed(&local_region),
|
||||
unwinding(false),
|
||||
@@ -628,8 +627,7 @@ rust_task::backtrace() {
|
||||
bool rust_task::can_schedule(int id)
|
||||
{
|
||||
return
|
||||
running_on == -1 &&
|
||||
(pinned_on == -1 || pinned_on == id);
|
||||
running_on == -1;
|
||||
}
|
||||
|
||||
void *
|
||||
@@ -637,20 +635,6 @@ rust_task::calloc(size_t size, const char *tag) {
|
||||
return local_region.calloc(size, tag);
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
rust_port_id rust_task::register_port(rust_port *port) {
|
||||
I(sched, !lock.lock_held_by_current_thread());
|
||||
scoped_lock with(lock);
|
||||
|
||||
Reference in New Issue
Block a user