llarp::EventLoopWork
thread pool work item
#include <ev.hpp>
Public Functions
| Name | |
|---|---|
| EventLoopWork(std::function< void(bool)> cleanup =nullptr) | |
| template <typename Work_t > void |
add_work(Work_t work) |
| void | work() const do work item while in thread |
| void | cleanup(bool cancel) const do cleanup while in main loop |
Public Functions Documentation
function EventLoopWork
EventLoopWork(
std::function< void(bool)> cleanup =nullptr
)
function add_work
template <typename Work_t >
inline void add_work(
Work_t work
)
function work
void work() const
do work item while in thread
function cleanup
void cleanup(
bool cancel
) const
do cleanup while in main loop
Updated on 2026-01-10 at 22:49:45 +0000