From 6df643981b5367e3a72d7e0dddd7bc26785a857f Mon Sep 17 00:00:00 2001 From: Jens Nockert Date: Fri, 11 Jan 2013 12:51:16 +0100 Subject: [PATCH] Make std::sync::semaphore() public --- src/libstd/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ()) } }