[go: up one dir, main page]

pub unsafe trait Impl {
    unsafe fn acquire() -> u8;
unsafe fn release(token: u8); }
This is supported on crate feature custom-impl only.
Expand description

Methods required for a custom critical section implementation.

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

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

Required methods

Acquire the critical section.

Release the critical section.

Implementors