Struct ctru_sys::LightSemaphore
source · #[repr(C)]pub struct LightSemaphore {
pub current_count: s32,
pub num_threads_acq: s16,
pub max_count: s16,
}
Expand description
A light semaphore.
Fields§
§current_count: s32
< The current release count of the semaphore
num_threads_acq: s16
< Number of threads concurrently acquiring the semaphore
max_count: s16
< The maximum release count of the semaphore
Trait Implementations§
source§impl Clone for LightSemaphore
impl Clone for LightSemaphore
source§fn clone(&self) -> LightSemaphore
fn clone(&self) -> LightSemaphore
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LightSemaphore
impl Debug for LightSemaphore
source§impl Default for LightSemaphore
impl Default for LightSemaphore
source§fn default() -> LightSemaphore
fn default() -> LightSemaphore
Returns the “default value” for a type. Read more