theCore C++ embedded framework
ecl::os::signal Namespace Reference

Functions

ecl::err send (const thread_handle &handle)
 Sends a signal to a given thread. More...
 
void clear ()
 Clears pending signal for current thread. More...
 
void wait ()
 Waits for signal for current thread. More...
 
ecl::err try_wait ()
 Tries to wait a signal. More...
 

Function Documentation

◆ send()

ecl::err ecl::os::signal::send ( const thread_handle handle)

Sends a signal to a given thread.

It is possible to send a signal even from ISR. Any signal that was sent previously to the same thread will be discarded.

Parameters
[in]handleRepresents a target thread.
Returns
Status of operation.
Here is the call graph for this function:

◆ clear()

void ecl::os::signal::clear ( )

Clears pending signal for current thread.

Can't be called from ISR context.

Here is the call graph for this function:

◆ wait()

void ecl::os::signal::wait ( )

Waits for signal for current thread.

Can't be called from ISR context.

Here is the call graph for this function:

◆ try_wait()

ecl::err ecl::os::signal::try_wait ( )

Tries to wait a signal.

Can't be called from ISR context.

Return values
err::againNo signal avaliable. Retry again.
err::okSignal consumed.
Here is the call graph for this function: