Merge pull request #4444 from JensNockert/pub-semaphore

Make std::sync::semaphore() public
This commit is contained in:
Tim Chevalier 2013-01-13 14:56:14 -08:00
commit 9bb399a6d6

View 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, ()) }
}