diff --git a/src/libstd/sync.rs b/src/libstd/sync.rs index a883062c4b9d5..fea2c69f336c9 100644 --- a/src/libstd/sync.rs +++ b/src/libstd/sync.rs @@ -360,7 +360,7 @@ impl &Sem<~[mut Waitqueue]> { 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, ()) } }