Skip to content

Commit 6df6439

Browse files
committed
Make std::sync::semaphore() public
1 parent ad2fc50 commit 6df6439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ impl &Sem<~[mut Waitqueue]> {
360360
struct Semaphore { priv sem: Sem<()> }
361361

362362
/// Create a new semaphore with the specified count.
363-
fn semaphore(count: int) -> Semaphore {
363+
pub fn semaphore(count: int) -> Semaphore {
364364
Semaphore { sem: new_sem(count, ()) }
365365
}
366366

0 commit comments

Comments
 (0)