A set of poll events.
More...
#include <poll_event_set.hpp>
|
auto | begin () noexcept |
|
auto | end () noexcept |
|
| poll_event_set () noexcept |
| default constructor More...
|
|
template<class... T_Args> |
| poll_event_set (T_Args &&... t) noexcept |
| constructor that takes arguments for initialization More...
|
|
auto | operator[] (size_t idx) noexcept |
| access an element of the set More...
|
|
auto | poll () noexcept |
| poll events waiting for ever More...
|
|
auto | try_poll () noexcept |
| try poll events without waiting More...
|
|
template<class T_Rep , class T_Period > |
auto | try_poll_for (const std::chrono::duration< T_Rep, T_Period > &timeout) noexcept |
| try poll events waiting for e certain time More...
|
|
template<int T_Size>
class zpp::poll_event_set< T_Size >
A set of poll events.
- Parameters
-
Definition at line 37 of file poll_event_set.hpp.
◆ poll_event_set() [1/2]
◆ poll_event_set() [2/2]
template<int T_Size>
template<class... T_Args>
constructor that takes arguments for initialization
- Parameters
-
t | the arguments to use for initialization |
Definition at line 56 of file poll_event_set.hpp.
58 assign(0, std::forward<T_Args>(t)...);
◆ begin()
◆ end()
◆ operator[]()
access an element of the set
- Parameters
-
idx | the index of the event to get |
- Returns
- a poll_event that has a reference to the indexed event
Definition at line 68 of file poll_event_set.hpp.
70 __ASSERT_NO_MSG(idx < T_Size);
71 return poll_event(&m_events[idx]);
◆ poll()
◆ try_poll()
◆ try_poll_for()
template<int T_Size>
template<class T_Rep , class T_Period >
auto zpp::poll_event_set< T_Size >::try_poll_for |
( |
const std::chrono::duration< T_Rep, T_Period > & |
timeout | ) |
|
|
inlinenoexcept |
The documentation for this class was generated from the following file: