pub struct RawTSpawnConfig {
pub revision: u32,
pub argument_ptr: *const (),
pub priority: RawContextPriority,
pub cpu: COption<u8>,
pub custom_stack_size: OptZero<ShouldNotBeZero<usize>>,
/* private fields */
}Expand description
configuration for the thread spawn syscall for now it takes only a single argument pointer which is a pointer to an optional argument, that pointer is going to be passed to the thread as the second argument
Fields§
§revision: u32revision 1: added custom stack size
argument_ptr: *const ()§priority: RawContextPriority§cpu: COption<u8>The index of the CPU to append to, if it is None the kernel will choose one, use 0 for the boot CPU
custom_stack_size: OptZero<ShouldNotBeZero<usize>>revision 1 and above
Implementations§
Source§impl RawTSpawnConfig
impl RawTSpawnConfig
Sourcepub const fn new_from_raw(
argument_ptr: *const (),
priority: RawContextPriority,
cpu: COption<u8>,
custom_stack_size: OptZero<ShouldNotBeZero<usize>>,
) -> Self
pub const fn new_from_raw( argument_ptr: *const (), priority: RawContextPriority, cpu: COption<u8>, custom_stack_size: OptZero<ShouldNotBeZero<usize>>, ) -> Self
Creates a new thread spawn configuration with the latest revision from raw FFI values
Auto Trait Implementations§
impl Freeze for RawTSpawnConfig
impl RefUnwindSafe for RawTSpawnConfig
impl !Send for RawTSpawnConfig
impl !Sync for RawTSpawnConfig
impl Unpin for RawTSpawnConfig
impl UnsafeUnpin for RawTSpawnConfig
impl UnwindSafe for RawTSpawnConfig
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