Skip to content
Commit 36c44045 authored by Chris Friedt's avatar Chris Friedt Committed by Benjamin Cabé
Browse files

kernel: events: prevent k_event_init() from being called in an ISR



Most kernel objects should be initialized well before being
manipulated in ISR context.

Event objects are no exception. Initializing a k_event object in
ISR context would implicitly be racey and introduce an element of
non-determinism.

Assert that k_event_init() is not called from ISR context.

Signed-off-by: default avatarChris Friedt <cfriedt@tenstorrent.com>
parent c10e6eaf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment