Skip to main content

SceKernelThreadInfo

Struct SceKernelThreadInfo 

Source
#[repr(C)]
pub struct SceKernelThreadInfo {
Show 18 fields pub size: SceSize, pub name: [c_char; 32], pub attr: SceUInt, pub status: c_int, pub entry: SceKernelThreadEntry, pub stack: *mut c_void, pub stackSize: c_int, pub gpReg: *mut c_void, pub initPriority: c_int, pub currentPriority: c_int, pub waitType: c_int, pub waitId: SceUID, pub wakeupCount: c_int, pub exitStatus: c_int, pub runClocks: SceKernelSysClock, pub intrPreemptCount: SceUInt, pub threadPreemptCount: SceUInt, pub releaseCount: SceUInt,
}
Expand description

Structure to hold the status information for a thread @see sceKernelReferThreadStatus

Fields§

§size: SceSize

Size of the structure

§name: [c_char; 32]

Nul terminated name of the thread

§attr: SceUInt

Thread attributes

§status: c_int

Thread status

§entry: SceKernelThreadEntry

Thread entry point

§stack: *mut c_void

Thread stack pointer

§stackSize: c_int

Thread stack size

§gpReg: *mut c_void

Pointer to the gp

§initPriority: c_int

Initial priority

§currentPriority: c_int

Current priority

§waitType: c_int

Wait type

§waitId: SceUID

Wait id

§wakeupCount: c_int

Wakeup count

§exitStatus: c_int

Exit status of the thread

§runClocks: SceKernelSysClock

Number of clock cycles run

§intrPreemptCount: SceUInt

Interrupt preemption count

§threadPreemptCount: SceUInt

Thread preemption count

§releaseCount: SceUInt

Release count

Trait Implementations§

Source§

impl Clone for SceKernelThreadInfo

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SceKernelThreadInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for SceKernelThreadInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.