about summary refs log tree commit diff
path: root/src/libnative
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-01-16 19:58:42 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-03 12:05:16 -0800
commitb49771e392983b8aeed5bed9f510b72656544544 (patch)
treec3ce5653472d6a775bbbaa6eca523af37a991cb8 /src/libnative
parent21e8466eca0536ab8ade7a74f7735fa6fda0142c (diff)
downloadrust-b49771e392983b8aeed5bed9f510b72656544544.tar.gz
rust-b49771e392983b8aeed5bed9f510b72656544544.zip
std: Remove try_send_deferred plus all fallout
Now that extra::sync primitives are built on a proper mutex instead of a
pthreads one, there's no longer any use for this function.
Diffstat (limited to 'src/libnative')
-rw-r--r--src/libnative/task.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libnative/task.rs b/src/libnative/task.rs
index 0def5cb4053..c08e326d903 100644
--- a/src/libnative/task.rs
+++ b/src/libnative/task.rs
@@ -143,6 +143,8 @@ impl rt::Runtime for Ops {
 
     fn stack_bounds(&self) -> (uint, uint) { self.stack_bounds }
 
+    fn can_block(&self) -> bool { true }
+
     // This function gets a little interesting. There are a few safety and
     // ownership violations going on here, but this is all done in the name of
     // shared state. Additionally, all of the violations are protected with a
@@ -231,7 +233,7 @@ impl rt::Runtime for Ops {
 
     // See the comments on `deschedule` for why the task is forgotten here, and
     // why it's valid to do so.
-    fn reawaken(mut ~self, mut to_wake: ~Task, _can_resched: bool) {
+    fn reawaken(mut ~self, mut to_wake: ~Task) {
         unsafe {
             let me = &mut *self as *mut Ops;
             to_wake.put_runtime(self as ~rt::Runtime);