Struct psp::sys::SceKernelSemaInfo
source · #[repr(C)]pub struct SceKernelSemaInfo {
pub size: usize,
pub name: [u8; 32],
pub attr: u32,
pub init_count: i32,
pub current_count: i32,
pub max_count: i32,
pub num_wait_threads: i32,
}
Expand description
Current state of a semaphore. See sceKernelReferSemaStatus
.
Fields§
§size: usize
Size of the SceKernelSemaInfo
structure.
name: [u8; 32]
Null terminated name of the semaphore.
attr: u32
Attributes.
init_count: i32
The initial count the semaphore was created with.
current_count: i32
The current count.
max_count: i32
The maximum count.
num_wait_threads: i32
The number of threads waiting on the semaphore.
Trait Implementations§
source§impl Clone for SceKernelSemaInfo
impl Clone for SceKernelSemaInfo
source§fn clone(&self) -> SceKernelSemaInfo
fn clone(&self) -> SceKernelSemaInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SceKernelSemaInfo
impl Debug for SceKernelSemaInfo
impl Copy for SceKernelSemaInfo
Auto Trait Implementations§
impl Freeze for SceKernelSemaInfo
impl RefUnwindSafe for SceKernelSemaInfo
impl Send for SceKernelSemaInfo
impl Sync for SceKernelSemaInfo
impl Unpin for SceKernelSemaInfo
impl UnwindSafe for SceKernelSemaInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more