26#ifndef MYSQL_HARNESS_NET_TS_IMPL_KQUEUE_H_
27#define MYSQL_HARNESS_NET_TS_IMPL_KQUEUE_H_
34#include <system_error>
56 int kedf,
const struct kevent *changelist,
int nchanges,
57 struct kevent *eventlist,
int nevents,
const struct timespec *
timeout) {
58 int res = ::kevent(kedf, changelist, nchanges, eventlist, nevents,
timeout);
68 const struct kevent *changelist,
70 return kqueue::kevent(kedf, changelist, nchanges,
nullptr, 0,
nullptr);
74 int kedf,
struct kevent *eventlist,
int nevents,
75 const struct timespec *
timeout) {
76 return kqueue::kevent(kedf,
nullptr, 0, eventlist, nevents,
timeout);
Definition: expected.h:284
Definition: http_server_component.cc:34
static bool timeout(bool(*wait_condition)())
Timeout function.
Definition: log0meb.cc:498
static int wait(mysql_cond_t *that, mysql_mutex_t *mutex_arg, const char *, unsigned int)
Definition: mysql_cond_v1_native.cc:63
stdx::expected< void, std::error_code > ctl(int epfd, Cmd cmd, int fd, epoll_event *ev)
Definition: linux_epoll.h:71
std::error_code last_error_code()
get last std::error_code for socket-errors.
Definition: socket_error.h:107
static mysql_service_status_t create(const char *service_names[], reference_caching_channel *out_channel) noexcept
Definition: component.cc:45
unexpected(E) -> unexpected< E >