Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
threads.h File Reference

Low level thread handling. More...

Go to the source code of this file.

Namespaces

namespace  lampda
 Program scope.
 
namespace  lampda::bsp
 Board Support Layer, handle the low level logic above the HAL.
 
namespace  lampda::bsp::threads
 Define low level thread behavior and handling.
 

Typedefs

typedef void * lampda::bsp::threads::TaskHandle_t
 
typedef void(* lampda::bsp::threads::taskfunc_t) (void)
 model of a task function
 

Functions

void lampda::bsp::threads::start_thread (taskfunc_t taskFunction, const uint32_t taskName, const int priority, const int stackSize)
 Start a separate thread, running until the system shuts off.
 
void lampda::bsp::threads::start_suspended_thread (taskfunc_t taskFunction, const uint32_t taskName, const int priority, const int stackSize)
 Start a separate thread, running until the system shuts off. Start in suspended state.
 
void lampda::bsp::threads::yield_this_thread ()
 make this thread pass the control to other threads
 
void lampda::bsp::threads::suspend_this_thread ()
 threads can only suspend itself
 
void lampda::bsp::threads::resume_thread (const uint32_t taskName)
 resume a target thread
 
uint16_t lampda::bsp::threads::get_usage_percent (const uint32_t taskName)
 Get the stack usage of this task, in percent.
 
void lampda::bsp::threads::notify_thread (const uint32_t taskName, int wakeUpEvent)
 notify a thread to resume
 
int lampda::bsp::threads::wait_notification (const int timeout_ms)
 block this thread until a timeout or notification is received
 
void lampda::bsp::threads::display_thread_debug ()
 
void lampda::bsp::threads::shutdown ()
 Shutdown the task driver cleanly.
 

Detailed Description

Low level thread handling.