Function descriptor

Synopsis

#include <src/uvw/loop.h>

int descriptor() const noexcept

Description

Get backend file descriptor.

Only kqueue, epoll and event ports are supported.
This can be used in conjunction with run<Loop::Mode::NOWAIT>() to poll in one thread and run the event loop’s callbacks in another.

Returns
The backend file descriptor.

Source

Lines 89-91 in src/uvw/loop.cpp. Line 226 in src/uvw/loop.h.

UVW_INLINE int Loop::descriptor() const noexcept {
    return uv_backend_fd(loop.get());
}





Add Discussion as Guest

Log in