about summary refs log tree commit diff
path: root/src/libstd/rt/work_queue.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-05-31 15:17:22 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-06-01 09:18:27 -0700
commit5fb254695b4db9af3d8e33577fae28ae9f7006c5 (patch)
tree33a4db59bd936a73594ca144e809b6074d6ccef3 /src/libstd/rt/work_queue.rs
parent1e52eede31a1df3627bfa9f43b9d06c730895c01 (diff)
downloadrust-5fb254695b4db9af3d8e33577fae28ae9f7006c5.tar.gz
rust-5fb254695b4db9af3d8e33577fae28ae9f7006c5.zip
Remove all uses of `pub impl`. rs=style
Diffstat (limited to 'src/libstd/rt/work_queue.rs')
-rw-r--r--src/libstd/rt/work_queue.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/rt/work_queue.rs b/src/libstd/rt/work_queue.rs
index 4671a45aaea..58d36113f0e 100644
--- a/src/libstd/rt/work_queue.rs
+++ b/src/libstd/rt/work_queue.rs
@@ -21,21 +21,21 @@ pub struct WorkQueue<T> {
     priv queue: ~Exclusive<~[T]>
 }
 
-pub impl<T: Owned> WorkQueue<T> {
-    fn new() -> WorkQueue<T> {
+impl<T: Owned> WorkQueue<T> {
+    pub fn new() -> WorkQueue<T> {
         WorkQueue {
             queue: ~exclusive(~[])
         }
     }
 
-    fn push(&mut self, value: T) {
+    pub fn push(&mut self, value: T) {
         unsafe {
             let value = Cell(value);
             self.queue.with(|q| q.unshift(value.take()) );
         }
     }
 
-    fn pop(&mut self) -> Option<T> {
+    pub fn pop(&mut self) -> Option<T> {
         unsafe {
             do self.queue.with |q| {
                 if !q.is_empty() {
@@ -47,7 +47,7 @@ pub impl<T: Owned> WorkQueue<T> {
         }
     }
 
-    fn steal(&mut self) -> Option<T> {
+    pub fn steal(&mut self) -> Option<T> {
         unsafe {
             do self.queue.with |q| {
                 if !q.is_empty() {
@@ -59,7 +59,7 @@ pub impl<T: Owned> WorkQueue<T> {
         }
     }
 
-    fn is_empty(&self) -> bool {
+    pub fn is_empty(&self) -> bool {
         unsafe {
             self.queue.with_imm(|q| q.is_empty() )
         }