MCPcopy Create free account
hub / github.com/caozhiyi/CppNet / PostTask

Method PostTask

net/win/IOCP.cpp:200–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void CIOCP::PostTask(std::function<void(void)>& task) {
201 {
202 std::unique_lock<std::mutex> lock(_mutex);
203 _task_list.push_back(task);
204 }
205 WakeUp();
206}
207
208void CIOCP::WakeUp() {
209 PostQueuedCompletionStatus(_iocp_handler, 0, WEAK_UP_IOCP, nullptr);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected