Ignore:
Timestamp:
2023-02-09T15:31:39Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
83789ea2
Parents:
78acbc72
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-09 15:28:13)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-09 15:31:39)
Message:

Synchronize timeout_unregister() with handler execution

This ensures that when timeout_unregister() returns,
timeout handler either didn't run at all, or it ran to
completion and is no longer executing.

This will be handy a few patches later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/time/timeout.h

    r78acbc72 rba25c4b  
    5353        /** On which processor is this timeout registered. */
    5454        cpu_t *cpu;
     55        /** Used to synchronize with the handler callback. */
     56        atomic_bool finished;
    5557} timeout_t;
    5658
Note: See TracChangeset for help on using the changeset viewer.