theCore C++ embedded framework
|
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... | |
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.
[in] | handle | Represents a target thread. |
void ecl::os::signal::clear | ( | ) |
Clears pending signal for current thread.
Can't be called from ISR context.
void ecl::os::signal::wait | ( | ) |
Waits for signal for current thread.
Can't be called from ISR context.
ecl::err ecl::os::signal::try_wait | ( | ) |
Tries to wait a signal.
Can't be called from ISR context.
err::again | No signal avaliable. Retry again. |
err::ok | Signal consumed. |