rusEFI
The most advanced open source ECU
Functions | Variables
engine_controller_misc.cpp File Reference

Functions

void threadInitHook (void *vtp)
 
void irqEnterHook ()
 
void irqExitHook ()
 
void contextSwitchHook ()
 

Variables

static uint8_t nextThreadId = 0
 

Function Documentation

◆ contextSwitchHook()

void contextSwitchHook ( void  )

Definition at line 26 of file engine_controller_misc.cpp.

26  {
28 }
void perfEventInstantGlobal(PE event)
Definition: perf_trace.cpp:115
@ ContextSwitch
Here is the call graph for this function:

◆ irqEnterHook()

void irqEnterHook ( void  )

Definition at line 18 of file engine_controller_misc.cpp.

18  {
20 }
void perfEventBegin(PE event)
Definition: perf_trace.cpp:107
@ ISR
Here is the call graph for this function:

◆ irqExitHook()

void irqExitHook ( void  )

Definition at line 22 of file engine_controller_misc.cpp.

22  {
24 }
void perfEventEnd(PE event)
Definition: perf_trace.cpp:111
Here is the call graph for this function:

◆ threadInitHook()

void threadInitHook ( void *  vtp)

Definition at line 11 of file engine_controller_misc.cpp.

11  {
12  // No lock required, this is already under lock
13  auto tp = reinterpret_cast<thread_t*>(vtp);
14  tp->threadId = ++nextThreadId;
15 }
static uint8_t nextThreadId

Variable Documentation

◆ nextThreadId

uint8_t nextThreadId = 0
static

Definition at line 10 of file engine_controller_misc.cpp.

Referenced by threadInitHook().

Go to the source code of this file.