Skip to content
Commit 1ef647f3 authored by Jordan Yates's avatar Jordan Yates Committed by Carles Cufí
Browse files

kernel: add `k_can_yield` helper function



Implements a function that application and driver code can use to check
whether it is valid to yield (or block) in the current context. This
check is required for functions that can feasibly be run from multiple
contexts. The primary intended use case is power management transition
functions, which can be run by application code explicitly or
automatically in the idle thread by system PM.

Signed-off-by: default avatarJordan Yates <jordan.yates@data61.csiro.au>
parent bfbcb397
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment