Merge pull request #4444 from JensNockert/pub-semaphore
Make std::sync::semaphore() public
This commit is contained in:
commit
9bb399a6d6
@ -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, ()) }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user