Make std::sync::semaphore() public

This commit is contained in:
Jens Nockert 2013-01-11 12:51:16 +01:00
parent ad2fc50ca1
commit 6df643981b

View File

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