about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-02 15:56:30 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-02 18:10:24 -0800
commit57cad613538177e06aa1b509f820f6f93704ad8c (patch)
tree9e18a0261a76b91e65d73878c28a458df1e6d12e /src/rt/rust_task.cpp
parent18de0f2aeb16439cfb220e344c15d88b0f41c82d (diff)
downloadrust-57cad613538177e06aa1b509f820f6f93704ad8c.tar.gz
rust-57cad613538177e06aa1b509f820f6f93704ad8c.zip
rt: Remove task pinning. Does nothing
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index faeae72f9db..6bd03e5f0cc 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -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);