api

reactor.ch

Declarations in reactor.ch

2 declarationsasync

Declarations

Public only
async#
Publicnamespace
namespace async
The libc names live in `async::posix` so they do not collide with the
pipe#
Publicfunction
func pipe(fds : *int) : int
async#
Publicnamespace
namespace async
posix#
Publicnamespace
namespace posix
select#
Publicfunction
func select(nfds : int, readfds : *FdSet, writefds : *FdSet, exceptfds : *FdSet, timeout : *TimeVal) : int
TimeVal#
Publicstruct
struct TimeVal { var tv_sec : long var tv_usec : long }
FdSet#
Publicstruct
struct FdSet { var bits : ulong[16] }
1024 bits = 128 bytes, matching fd_set on Linux and macOS.
PollFd#
Publicstruct
struct PollFd { var fd : int var events : short var revents : short }
fdset_set#
function
func fdset_set(set : *FdSet, fd : int) : void
fdset_isset#
function
func fdset_isset(set : *FdSet, fd : int) : bool
reactor_is_ready#
Publicfunction
func reactor_is_ready(fd : int, events : short) : bool
reactor_platform_poll#
Publicfunction
func reactor_platform_poll(fds : *PollFd, n : ulong, timeout_ms : int) : int