Skip to main content

vlib_worker_thread_t

Struct vlib_worker_thread_t 

Source
#[repr(C, align(64))]
pub struct vlib_worker_thread_t {
Show 27 fields pub cacheline0: __IncompleteArrayField<u8_>, pub wait_at_barrier: *mut u32_, pub workers_at_barrier: *mut u32_, pub __bindgen_padding_0: [u8; 48], pub cacheline1: __IncompleteArrayField<u8_>, pub thread_mheap: *mut c_void, pub thread_stack: *mut u8_, pub thread_function: Option<unsafe extern "C" fn(arg1: *mut c_void)>, pub thread_function_arg: *mut c_void, pub recursion_level: i64_, pub elog_track: elog_track_t, pub instance_id: u32_, pub registration: *mut vlib_thread_registration_t, pub name: *mut u8_, pub barrier_sync_count: u64_, pub barrier_elog_enabled: u8_, pub barrier_caller: *const c_char, pub barrier_context: *const c_char, pub node_reforks_required: *mut u32_, pub wait_before_barrier: u32_, pub workers_before_barrier: u32_, pub done_work_before_barrier: u32_, pub lwp: c_long, pub cpu_id: c_int, pub core_id: c_int, pub numa_id: c_int, pub thread_id: pthread_t,
}

Fields§

§cacheline0: __IncompleteArrayField<u8_>§wait_at_barrier: *mut u32_§workers_at_barrier: *mut u32_§__bindgen_padding_0: [u8; 48]§cacheline1: __IncompleteArrayField<u8_>§thread_mheap: *mut c_void§thread_stack: *mut u8_§thread_function: Option<unsafe extern "C" fn(arg1: *mut c_void)>§thread_function_arg: *mut c_void§recursion_level: i64_§elog_track: elog_track_t§instance_id: u32_§registration: *mut vlib_thread_registration_t§name: *mut u8_§barrier_sync_count: u64_§barrier_elog_enabled: u8_§barrier_caller: *const c_char§barrier_context: *const c_char§node_reforks_required: *mut u32_§wait_before_barrier: u32_§workers_before_barrier: u32_§done_work_before_barrier: u32_§lwp: c_long§cpu_id: c_int§core_id: c_int§numa_id: c_int§thread_id: pthread_t

Trait Implementations§

Source§

impl Debug for vlib_worker_thread_t

Source§

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

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

impl Default for vlib_worker_thread_t

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> 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.