about summary refs log tree commit diff
path: root/src/libstd/comm.rs
diff options
context:
space:
mode:
authorSteven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>2013-07-22 13:57:40 -0700
committerSteven Stewart-Gallus <sstewartgallus00@mylangara.bc.ca>2013-07-27 22:06:29 -0700
commitd0b7515aedcaa161bb206e651a374d7ff27e52a7 (patch)
tree9497eea70b9db687a4d6bd4f84bcefa836451b1d /src/libstd/comm.rs
parent3078e83c3f1a643ddbdefa78095e4fbda3cecc02 (diff)
downloadrust-d0b7515aedcaa161bb206e651a374d7ff27e52a7.tar.gz
rust-d0b7515aedcaa161bb206e651a374d7ff27e52a7.zip
Change concurrency primitives to standard naming conventions
To be more specific:

`UPPERCASETYPE` was changed to `UppercaseType`
`type_new` was changed to `Type::new`
`type_function(value)` was changed to `value.method()`
Diffstat (limited to 'src/libstd/comm.rs')
-rw-r--r--src/libstd/comm.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/comm.rs b/src/libstd/comm.rs
index b9dacc142ce..9fe6aa57958 100644
--- a/src/libstd/comm.rs
+++ b/src/libstd/comm.rs
@@ -22,7 +22,7 @@ use option::{Option, Some, None};
 use uint;
 use vec::OwnedVector;
 use util::replace;
-use unstable::sync::{Exclusive, exclusive};
+use unstable::sync::Exclusive;
 use rtcomm = rt::comm;
 use rt;
 
@@ -228,7 +228,7 @@ impl<T: Send> SharedChan<T> {
     pub fn new(c: Chan<T>) -> SharedChan<T> {
         let Chan { inner } = c;
         let c = match inner {
-            Left(c) => Left(exclusive(c)),
+            Left(c) => Left(Exclusive::new(c)),
             Right(c) => Right(rtcomm::SharedChan::new(c))
         };
         SharedChan { inner: c }