|
MT Core (C++)
Core library for replacing C++ standard in project usage
|
Select option to send a message. More...
#include <select.hpp>

Public Types | |
| using | Message = typename S::Message |
Public Member Functions | |
| Result< void, SelectOptionErrors > | attempt () |
| bool | prevents_deadlock () const noexcept |
| Checks if option is still valid (invalidates on channel close) | |
Public Attributes | |
| S & | channel |
| Message | m |
| Callback | callback |
| bool | valid = true |
Select option to send a message.
Calls a callback on send
| S | Sender to wait on |
| Callback | Callback to call. Should be compatible with std::function<void (void)> |
Definition at line 113 of file select.hpp.
| using mtcore::thread::SendOption< S, Callback >::Message = typename S::Message |
Definition at line 114 of file select.hpp.
|
inline |
Definition at line 120 of file select.hpp.

|
inlinenodiscardnoexcept |
Checks if option is still valid (invalidates on channel close)
Definition at line 137 of file select.hpp.
| Callback mtcore::thread::SendOption< S, Callback >::callback |
Definition at line 117 of file select.hpp.
| S& mtcore::thread::SendOption< S, Callback >::channel |
Definition at line 115 of file select.hpp.
| Message mtcore::thread::SendOption< S, Callback >::m |
Definition at line 116 of file select.hpp.
| bool mtcore::thread::SendOption< S, Callback >::valid = true |
Definition at line 118 of file select.hpp.