Ignore:
Timestamp:
2023-01-08T21:19:21Z (2 years ago)
Author:
GitHub <noreply@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8503fd
Parents:
5b19d80 (diff), eda43238 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jakub Jermář <jakub@…> (2023-01-08 21:19:21)
git-committer:
GitHub <noreply@…> (2023-01-08 21:19:21)
Message:

Merge pull request #222 from le-jzr/timeout

Simplify timeout implementation in kernel

File:
1 edited

Legend:

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

    r5b19d80 re04b72d6  
    4343
    4444typedef struct {
    45         IRQ_SPINLOCK_DECLARE(lock);
    46 
    47         /** Link to the list of active timeouts on CURRENT->cpu */
     45        /** Link to the list of active timeouts on timeout->cpu */
    4846        link_t link;
    49         /** Timeout will be activated in this amount of clock() ticks. */
    50         uint64_t ticks;
     47        /** Timeout will be activated when current clock tick reaches this value. */
     48        uint64_t deadline;
    5149        /** Function that will be called on timeout activation. */
    5250        timeout_handler_t handler;
     
    6159extern void timeout_init(void);
    6260extern void timeout_initialize(timeout_t *);
    63 extern void timeout_reinitialize(timeout_t *);
    6461extern void timeout_register(timeout_t *, uint64_t, timeout_handler_t, void *);
    6562extern bool timeout_unregister(timeout_t *);
Note: See TracChangeset for help on using the changeset viewer.