载入中...
搜索中...
未找到
NetWorker.h
浏览该文件的文档.
Background thread that runs blocking socket I/O and HTTP jobs. Completions are queued and drained by ...
Definition NetWorker.h:20
void drain(std::vector< NetCompletion > &out)
Test helper: moves all pending completions into out.
Definition NetWorker.cpp:35
void post(NetCompletion c)
Queues a completion for the main thread (thread-safe).
Definition NetWorker.cpp:30
void submit(std::function< void()> job)
Queues an arbitrary blocking job to run on the worker thread.
Definition NetWorker.cpp:40
Network module: TCP/UDP/HTTP factories, background worker, and completion event plumbing....
Definition Network.h:30
Definition Channel.cpp:12
One asynchronous network result/event. handle points at the originating TcpSocket/UdpSocket/HttpReque...
Definition NetTypes.h:33