Skip to content

Commit

Permalink
Make std::sync::semaphore() public
Browse files Browse the repository at this point in the history
  • Loading branch information
auroranockert committed Jan 11, 2013
1 parent ad2fc50 commit 6df6439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sync.rs
Expand Up @@ -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, ()) }
}

Expand Down

0 comments on commit 6df6439

Please sign in to comment.