MT Core (C++)
Core library for replacing C++ standard in project usage
|
Option to add a timeout on select to ensure a path runs before a timeout If the timeout is hit, a timeout error will be returned from the select Will call a callback on timeout. More...
#include <select.hpp>
Public Member Functions | |
Result< void, SelectOptionErrors > | attempt () |
bool | prevents_deadlock () const noexcept |
Public Attributes | |
std::chrono::time_point< Clock, Duration > | time_point |
Callback | callback |
Option to add a timeout on select to ensure a path runs before a timeout If the timeout is hit, a timeout error will be returned from the select Will call a callback on timeout.
Clock | Clock to get time from |
Duration | Duration for time point |
Callback | Callback to call on timeout |
Definition at line 180 of file select.hpp.
|
inline |
Definition at line 184 of file select.hpp.
|
inlinenodiscardnoexcept |
Definition at line 193 of file select.hpp.
Callback mtcore::thread::BeforeOption< Clock, Duration, Callback >::callback |
Definition at line 182 of file select.hpp.
std::chrono::time_point<Clock, Duration> mtcore::thread::BeforeOption< Clock, Duration, Callback >::time_point |
Definition at line 181 of file select.hpp.