Struct sema::Semaphore [] [src]

pub struct Semaphore {
    // some fields omitted
}

Methods

impl Semaphore
[src]

fn new(value: u32) -> Semaphore

fn wait(&self)

fn post(&self)

fn take(&self) -> SemaphoreGuard

Trait Implementations

impl Send for Semaphore
[src]

impl Sync for Semaphore
[src]

impl Drop for Semaphore
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more