distortos  v0.6.0
object-oriented C++ RTOS for microcontrollers
distortos::internal::anonymous_namespace{MainThread.cpp} Namespace Reference

Classes

class  MainThread
 MainThread class is a Thread for main() More...
 

Typedefs

using MainThreadStaticSignalsReceiver = StaticSignalsReceiver< CONFIG_MAIN_THREAD_QUEUED_SIGNALS, CONFIG_MAIN_THREAD_SIGNAL_ACTIONS >
 type of StaticSignalsReceiver for main thread More...
 

Functions

Stack stackWrapper (const std::pair< void *, size_t > stackBuffer)
 Wrapper for Stack's constructor. More...
 
 BIND_LOW_LEVEL_INITIALIZER (10, &MainThread::lowLevelInitializer)
 

Variables

std::aligned_storage< sizeof(MainThread), alignof(MainThread)>::type mainThreadStorage
 storage for main thread instance More...
 
ThreadGroupControlBlock mainThreadGroupControlBlock
 main thread group More...
 
std::aligned_storage< sizeof(MainThreadStaticSignalsReceiver), alignof(MainThreadStaticSignalsReceiver)>::type mainThreadStaticSignalsReceiverStorage
 storage for instance of MainThreadStaticSignalsReceiver for main thread More...
 

Typedef Documentation

◆ MainThreadStaticSignalsReceiver

using distortos::internal::anonymous_namespace{MainThread.cpp}::MainThreadStaticSignalsReceiver = typedef StaticSignalsReceiver<CONFIG_MAIN_THREAD_QUEUED_SIGNALS, CONFIG_MAIN_THREAD_SIGNAL_ACTIONS>

type of StaticSignalsReceiver for main thread

Function Documentation

◆ stackWrapper()

Stack distortos::internal::anonymous_namespace{MainThread.cpp}::stackWrapper ( const std::pair< void *, size_t >  stackBuffer)

Wrapper for Stack's constructor.

Enables use of architecture::getMainStack() result to construct Stack.

Parameters
[in]stackBufferis a pair with beginning of stack and its size in bytes
Returns
constructed Stack object
Here is the caller graph for this function:

Variable Documentation

◆ mainThreadGroupControlBlock

ThreadGroupControlBlock distortos::internal::anonymous_namespace{MainThread.cpp}::mainThreadGroupControlBlock

main thread group

◆ mainThreadStaticSignalsReceiverStorage

std::aligned_storage<sizeof(MainThreadStaticSignalsReceiver), alignof(MainThreadStaticSignalsReceiver)>::type distortos::internal::anonymous_namespace{MainThread.cpp}::mainThreadStaticSignalsReceiverStorage

storage for instance of MainThreadStaticSignalsReceiver for main thread

◆ mainThreadStorage

std::aligned_storage<sizeof(MainThread), alignof(MainThread)>::type distortos::internal::anonymous_namespace{MainThread.cpp}::mainThreadStorage

storage for main thread instance