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
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
}
reactor_is_ready#
Publicfunction
func reactor_is_ready(fd : int, events : short) : bool