add send sync requirement

This commit is contained in:
Corwin 2022-03-31 22:59:23 +01:00
parent c43581620f
commit f05791b5dc

View file

@ -241,7 +241,7 @@ fn interrupt_to_root(interrupt: Interrupt) -> &'static InterruptRoot {
/// ``` /// ```
pub fn add_interrupt_handler<'a>( pub fn add_interrupt_handler<'a>(
interrupt: Interrupt, interrupt: Interrupt,
handler: impl Fn(&CriticalSection) + 'a, handler: impl Fn(&CriticalSection) + Send + Sync + 'a,
) -> InterruptHandler<'a> { ) -> InterruptHandler<'a> {
fn do_with_inner<'a>( fn do_with_inner<'a>(
interrupt: Interrupt, interrupt: Interrupt,