Lely core libraries  2.3.4
lely::io::Poll Class Reference

The system-dependent I/O polling interface. More...

#include <poll.hpp>

Collaboration diagram for lely::io::Poll:

Public Member Functions

 Poll (ContextBase &ctx, int signo=0)
 
 ~Poll ()
 
ContextBase get_ctx () const noexcept
 
ev::Poll get_poll () const noexcept
 
void watch (int fd, Event events, struct io_poll_watch &watch, ::std::error_code &ec) noexcept
 
void watch (int fd, Event events, struct io_poll_watch &watch)
 
 Poll (ContextBase &ctx)
 
 ~Poll ()
 
ContextBase get_ctx () const noexcept
 
ev::Poll get_poll () const noexcept
 
void register_handle (HANDLE handle, ::std::error_code &ec) noexcept
 
void register_handle (HANDLE handle)
 

Detailed Description

The system-dependent I/O polling interface.

This class is a wrapper around #io_poll_t*.

Definition at line 42 of file poll.hpp.

Constructor & Destructor Documentation

◆ Poll() [1/2]

lely::io::Poll::Poll ( ContextBase ctx,
int  signo = 0 
)
inline
See also
io_poll_create()

Definition at line 45 of file poll.hpp.

◆ ~Poll() [1/2]

lely::io::Poll::~Poll ( )
inline
See also
io_poll_destroy()

Definition at line 63 of file poll.hpp.

◆ Poll() [2/2]

lely::io::Poll::Poll ( ContextBase ctx)
inline
See also
io_poll_create()

Definition at line 44 of file poll.hpp.

◆ ~Poll() [2/2]

lely::io::Poll::~Poll ( )
inline
See also
io_poll_destroy()

Definition at line 62 of file poll.hpp.

Member Function Documentation

◆ get_ctx() [1/2]

ContextBase lely::io::Poll::get_ctx ( ) const
inlinenoexcept
See also
io_poll_get_ctx()

Definition at line 69 of file poll.hpp.

◆ get_poll() [1/2]

ev::Poll lely::io::Poll::get_poll ( ) const
inlinenoexcept
See also
io_poll_get_poll()

Definition at line 75 of file poll.hpp.

◆ watch() [1/2]

void lely::io::Poll::watch ( int  fd,
Event  events,
struct io_poll_watch watch,
::std::error_code &  ec 
)
inlinenoexcept
See also
io_poll_watch()

Definition at line 81 of file poll.hpp.

◆ watch() [2/2]

void lely::io::Poll::watch ( int  fd,
Event  events,
struct io_poll_watch watch 
)
inline
See also
io_poll_watch()

Definition at line 94 of file poll.hpp.

◆ get_ctx() [2/2]

ContextBase lely::io::Poll::get_ctx ( ) const
inlinenoexcept
See also
io_poll_get_ctx()

Definition at line 68 of file poll.hpp.

◆ get_poll() [2/2]

ev::Poll lely::io::Poll::get_poll ( ) const
inlinenoexcept
See also
io_poll_get_poll()

Definition at line 74 of file poll.hpp.

◆ register_handle() [1/2]

void lely::io::Poll::register_handle ( HANDLE  handle,
::std::error_code &  ec 
)
inlinenoexcept
See also
io_poll_register_handle()

Definition at line 80 of file poll.hpp.

◆ register_handle() [2/2]

void lely::io::Poll::register_handle ( HANDLE  handle)
inline
See also
io_poll_register()

Definition at line 92 of file poll.hpp.


The documentation for this class was generated from the following file: