#[repr(C)]pub struct k_work_sync {
pub __bindgen_anon_1: k_work_sync__bindgen_ty_1,
}
Expand description
@brief A structure holding internal state for a pending synchronous operation on a work item or queue.
Instances of this type are provided by the caller for invocation of k_work_flush(), k_work_cancel_sync() and sibling flush and cancel APIs. A referenced object must persist until the call returns, and be accessible from both the caller thread and the work queue thread.
@note If CONFIG_KERNEL_COHERENCE is enabled the object must be allocated in coherent memory; see arch_mem_coherent(). The stack on these architectures is generally not coherent. be stack-allocated. Violations are detected by runtime assertion.
Fields§
§__bindgen_anon_1: k_work_sync__bindgen_ty_1
Auto Trait Implementations§
impl Freeze for k_work_sync
impl RefUnwindSafe for k_work_sync
impl !Send for k_work_sync
impl !Sync for k_work_sync
impl Unpin for k_work_sync
impl UnwindSafe for k_work_sync
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