12#include <dfx-fdwatch/BorrowedFd.hpp>
13#include <dfx-fdwatch/Callback.hpp>
75 FdWatch::EventInterests events,
Event interest and trigger flags for file-descriptor watching (Linux/epoll).
Abstract base class for all nodes in the dfx runtime.
Definition Node.hpp:91
Non-owning wrapper around a file descriptor.
Definition BorrowedFd.hpp:37
Node-aware reactor API for FD watching and deferred execution in the runtime.
Definition NodeReactor.hpp:59
virtual void deregisterNodeFd(FdWatch::BorrowedFd fd) noexcept=0
Deregister a previously registered file descriptor.
virtual void registerNodeFd(FdWatch::BorrowedFd fd, FdWatch::EventInterests events, FdWatch::FdCallback cb, Core::NodeWPtr node)=0
Register a file descriptor for a specific node.
virtual void deferNodeCall(FdWatch::Callback cb, Core::NodeWPtr node)=0
Defer execution of a callback associated with a node.
Definition Channel.hpp:22
std::weak_ptr< Node > NodeWPtr
Weak pointer type for Nodes.
Definition Node.hpp:63
std::function< void(BorrowedFd, EventTriggers)> FdCallback
Invoked when events occur on a watched file descriptor.
Definition Callback.hpp:28
std::move_only_function< void()> Callback
Generic move-only callback with no arguments.
Definition Callback.hpp:31