Skip to main content

guard_multiple_policy_with

Function guard_multiple_policy_with 

Source
pub fn guard_multiple_policy_with<'a, const N: usize, Class: LockClass, M: RawLock, P: LockPolicy<M>>(
    locks: [&'a KMutex<Class, M>; N],
    args: P::AcquireArgs,
) -> impl PinInit<KMutexGuardMultiple<'a, N, Class, M, P>, Infallible>
Expand description

Acquires multiple KMutex instances of the same class and type in ascending memory address order with policy P and arguments.