]> git.lizzy.rs Git - rust.git/commitdiff
Make std::sync::semaphore() public
authorJens Nockert <jens@nockert.se>
Fri, 11 Jan 2013 11:51:16 +0000 (12:51 +0100)
committerJens Nockert <jens@nockert.se>
Fri, 11 Jan 2013 11:51:16 +0000 (12:51 +0100)
src/libstd/sync.rs

index a883062c4b9d5497082a21656de3884d93e4a867..fea2c69f336c90bf2aeca551468425f0d0fa5629 100644 (file)
@@ -360,7 +360,7 @@ fn access_cond<U>(blk: fn(c: &Condvar) -> U) -> U {
 struct Semaphore { priv sem: Sem<()> }
 
 /// Create a new semaphore with the specified count.
-fn semaphore(count: int) -> Semaphore {
+pub fn semaphore(count: int) -> Semaphore {
     Semaphore { sem: new_sem(count, ()) }
 }