YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
task_idle Class Reference
Inheritance diagram for task_idle:
task

Public Member Functions

 task_idle (const task_idle &)=delete
 
task_idleoperator= (const task_idle &)=delete
 
void run () override
 
- Public Member Functions inherited from task
 task (std::function< void()> f, const char *n, uint16_t stack_size=DEFAULT_STACK_SIZE)
 
 task (const task &)=delete
 
taskoperator= (const task &)=delete
 
void sign_up (core_t=core_t::CURRENT_CORE, uint16_t priority=DEFAULT_PRIORITY, bool priv=false)
 
void stop ()
 
void suspend ()
 
void resume ()
 
void block (lock_base_interface *lbi)
 
void join () const
 
const char * getName () const
 
uint16_t getPriority () const
 
void setPriority (uint16_t p)
 
state_t getState () const
 
uint32_t getMillisRun () const
 
uint16_t getStackSize () const
 
bool isLinkedIn () const
 
uint16_t getUsedStack ()
 
uint32_t getDeltaTicks ()
 
bool isPrivileged () const
 
bool isUsingFloat () const
 

Additional Inherited Members

- Public Types inherited from task
enum  state_t : uint8_t { READY = 0 , SLEEPING = 1 , SUSPENDED = 2 , BLOCKED = 3 }
 
- Static Public Member Functions inherited from task
static const char * state_to_str (state_t state)
 
static void sleep_ms (uint32_t ms)
 
static void start_scheduler ()
 
static void yield ()
 
static void cpu_sleep ()
 
static void enterCritical ()
 
static void leaveCritical ()
 
static uint64_t millis ()
 
static bool is_irq_context ()
 
static bool multitasking_running ()
 
static int8_t get_core ()
 
static void _scheduler ()
 
static void _tick_handler ()
 
static taskcurrentTask ()
 
static void _switchToHead ()
 
static void _switchToNext ()
 
static uint8_t * _getStackBase ()
 
static uint8_t * _getStackPtr ()
 
static void _setStackPtr (uint8_t *s)
 
- Protected Member Functions inherited from task
 task (const char *n, uint16_t stack_size=DEFAULT_STACK_SIZE)
 

Detailed Description

Definition at line 21 of file task_idle.h.

Constructor & Destructor Documentation

◆ task_idle()

task_idle::task_idle ( )
inline

Definition at line 24 of file task_idle.h.

Member Function Documentation

◆ run()

void task_idle::run ( )
inlineoverridevirtual

Reimplemented from task.

Definition at line 31 of file task_idle.h.


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