A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::uv::UvExecutor Class Reference

#include <cpp/a11/uv/loop.h>

Public Member Functions

absl::Status Post (std::function< void()> work, const void *order_key=nullptr)
 Queue work for the loop thread.
 
std::shared_ptr< uvw::loop > loop () const
 
bool IsLoopThread () const
 

Static Public Member Functions

static UvExecutor & Instance ()
 

Member Function Documentation

◆ Instance()

static UvExecutor & a11::uv::UvExecutor::Instance ( )
inlinestatic

◆ IsLoopThread()

bool a11::uv::UvExecutor::IsLoopThread ( ) const
inline

◆ loop()

std::shared_ptr< uvw::loop > a11::uv::UvExecutor::loop ( ) const
inline

◆ Post()

absl::Status a11::uv::UvExecutor::Post ( std::function< void()>  work,
const void *  order_key = nullptr 
)
inline

Queue work for the loop thread.

Parameters
workWhat to run on the loop.
order_keyOrdering group for the work. Pass the connection for operations on one socket so headers, data, and completion remain ordered. Leave it null when no per-connection ordering is required.

The documentation for this class was generated from the following file: