rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
scheduler.h File Reference

Detailed Description

Date
May 18, 2014
Author
Andrey Belomutskiy, (c) 2012-2020

Definition in file scheduler.h.

Data Structures

struct  TaggedPointer< T >
 
class  action_s
 
struct  scheduling_s
 
struct  Scheduler
 

Typedefs

using scheduler_arg_t = uintptr_t
 

Functions

template<class To , class From >
std::enable_if_t< sizeof(To)==sizeof(From) &&std::is_trivially_copyable_v< From > &&std::is_trivially_copyable_v< To >, To > bit_cast (const From &src) noexcept
 
SchedulergetScheduler ()
 

Typedef Documentation

◆ scheduler_arg_t

using scheduler_arg_t = uintptr_t

Definition at line 21 of file scheduler.h.

Function Documentation

◆ bit_cast()

template<class To , class From >
std::enable_if_t< sizeof(To)==sizeof(From) && std::is_trivially_copyable_v< From > && std::is_trivially_copyable_v< To >, To > bit_cast ( const From &  src)
noexcept

Definition at line 30 of file scheduler.h.

31{
32 static_assert(std::is_trivially_constructible_v<To>,
33 "This implementation additionally requires "
34 "destination type to be trivially constructible");
35
36 To dst;
37 std::memcpy(&dst, &src, sizeof(To));
38 return dst;
39}

◆ getScheduler()

Scheduler * getScheduler ( )

Definition at line 585 of file engine.cpp.

585 {
586 return &engine->scheduler;
587}
SingleTimerExecutor scheduler
Definition engine.h:271
static EngineAccessor engine
Definition engine.h:413

Referenced by PrimeController::onIgnitionStateChanged(), PrimeController::onPrimeStart(), and InjectionEvent::onTriggerTooth().

Here is the caller graph for this function:

Go to the source code of this file.