[][src]Struct mynewt::kernel::os::os_task

#[repr(C)]
pub struct os_task { pub t_stackptr: *mut os_stack_t, pub t_stacktop: *mut os_stack_t, pub t_stacksize: u16, pub t_taskid: u8, pub t_prio: u8, pub t_state: u8, pub t_flags: u8, pub t_lockcnt: u8, pub t_pad: u8, pub t_name: *const c_char, pub t_func: os_task_func_t, pub t_arg: *mut c_void, pub t_obj: *mut c_void, pub t_sanity_check: os_sanity_check, pub t_next_wakeup: os_time_t, pub t_run_time: os_time_t, pub t_ctx_sw_cnt: u32, pub t_os_task_list: os_task__bindgen_ty_1, pub t_os_list: os_task__bindgen_ty_2, pub t_obj_list: os_task__bindgen_ty_3, }

@cond INTERNAL_HIDDEN

Fields

t_stackptr: *mut os_stack_t

Current stack pointer for this task

t_stacktop: *mut os_stack_t

Pointer to top of this task's stack

t_stacksize: u16

Size of this task's stack

t_taskid: u8

Task ID

t_prio: u8

Task Priority

t_state: u8t_flags: u8

Task flags, bitmask

t_lockcnt: u8t_pad: u8t_name: *const c_char

Task name

t_func: os_task_func_t

Task function that executes

t_arg: *mut c_void

Argument to pass to task function when called

t_obj: *mut c_void

Current object task is waiting on, either a semaphore or mutex

t_sanity_check: os_sanity_check

Default sanity check for this task

t_next_wakeup: os_time_t

Next scheduled wakeup if this task is sleeping

t_run_time: os_time_t

Total task run time

t_ctx_sw_cnt: u32

Total number of times this task has been context switched during execution.

t_os_task_list: os_task__bindgen_ty_1t_os_list: os_task__bindgen_ty_2t_obj_list: os_task__bindgen_ty_3

Trait Implementations

impl Default for os_task[src]

Auto Trait Implementations

impl !Send for os_task

impl !Sync for os_task

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]