PatchworkOS  da8a090
A non-POSIX operating system.
Loading...
Searching...
No Matches
timer_cpu_ctx_t Struct Reference

Per-CPU system time context. More...

#include <timer.h>

Collaboration diagram for timer_cpu_ctx_t:

Data Fields

clock_t volatile deadline
 

Detailed Description

Per-CPU system time context.

Definition at line 45 of file timer.h.

Field Documentation

◆ deadline

clock_t volatile timer_cpu_ctx_t::deadline

The next time the owner cpus apic timer will fire, specified in nanoseconds since boot, used in timer_set().

Will be accessed in interrupt and non-interrupt context, so must be declared volatile to avoid compiler optimizations that could lead to stale reads.

Definition at line 54 of file timer.h.


The documentation for this struct was generated from the following file: