rusEFI
The most advanced open source ECU
Data Fields
scheduling_s Struct Reference

#include <scheduler.h>

Collaboration diagram for scheduling_s:
Collaboration graph
[legend]

Data Fields

virtual_timer_t timer
 
volatile efitick_t momentX = 0
 
scheduling_snextScheduling_s = nullptr
 
action_s action
 

Detailed Description

This structure holds information about an event scheduled in the future: when to execute what callback with what parameters

Definition at line 63 of file scheduler.h.

Field Documentation

◆ action

action_s scheduling_s::action

Definition at line 79 of file scheduler.h.

Referenced by EventQueue::executeOne(), EventQueue::insertTask(), and EventQueue::remove().

◆ momentX

volatile efitick_t scheduling_s::momentX = 0

timestamp represented as 64-bit value of ticks since MCU start

Definition at line 72 of file scheduler.h.

Referenced by EventQueue::assertListIsSorted(), EventQueue::clear(), EventQueue::executeOne(), EventQueue::getNextEventTime(), and EventQueue::insertTask().

◆ nextScheduling_s

scheduling_s* scheduling_s::nextScheduling_s = nullptr

Scheduler implementation uses a sorted linked list of these scheduling records.

Definition at line 77 of file scheduler.h.

Referenced by EventQueue::assertListIsSorted(), EventQueue::clear(), EventQueue::executeOne(), EventQueue::getFreeScheduling(), EventQueue::insertTask(), EventQueue::remove(), and EventQueue::tryReturnScheduling().

◆ timer

virtual_timer_t scheduling_s::timer

Definition at line 66 of file scheduler.h.


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