5#ifndef WPINET_UV_WORK_H_
6#define WPINET_UV_WORK_H_
58inline void QueueWork(
const std::shared_ptr<Loop>& loop,
59 const std::shared_ptr<WorkReq>& req) {
74 std::function<
void()> afterWork);
86inline void QueueWork(
const std::shared_ptr<Loop>& loop,
87 std::function<
void()> work,
88 std::function<
void()> afterWork) {
89 QueueWork(*loop, std::move(work), std::move(afterWork));
SignalBase is an implementation of the observer pattern, through the use of an emitting object and sl...
Definition Signal.h:495
Event loop.
Definition Loop.h:37
Request.
Definition Request.h:135
uv_work_t * GetRaw() noexcept
Definition Request.h:150
Work request.
Definition Work.h:26
sig::Signal afterWork
Function(s) that will be run on the loop thread after the work on the thread pool has been completed ...
Definition Work.h:41
Loop & GetLoop() const
Definition Work.h:30
sig::Signal work
Function(s) that will be run on the thread pool.
Definition Work.h:35
void QueueWork(Loop &loop, const std::shared_ptr< WorkReq > &req)
Initializes a work request which will run on the thread pool.
void * data
Definition uv.h:1907
UV_REQ_FIELDS uv_loop_t * loop
Definition uv.h:1161