Merge pull request #206 from corwinkuiper/send-sync

add send sync requirement
This commit is contained in:
Gwilym Kuiper 2022-04-01 00:01:09 +01:00 committed by GitHub
commit 3fd0b53350
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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