[go: up one dir, main page]

pub unsafe trait Impl {
    unsafe fn acquire() -> u8;
    unsafe fn release(restore_state: u8);
}
Expand description

Methods required for a critical section implementation.

This trait is not intended to be used except when implementing a critical section.

Safety

Implementations must uphold the contract specified in crate::acquire and crate::release.

Required Methods§

Acquire the critical section.

Safety

Callers must uphold the contract specified in crate::acquire and crate::release.

Release the critical section.

Safety

Callers must uphold the contract specified in crate::acquire and crate::release.

Implementors§