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

Method _DoTaskList

net/linux/CEpoll.cpp:451–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451void CEpoll::_DoTaskList() {
452 std::vector<std::function<void(void)>> func_vec;
453 {
454 std::unique_lock<std::mutex> lock(_mutex);
455 func_vec.swap(_task_list);
456 }
457
458 for (size_t i = 0; i < func_vec.size(); ++i) {
459 func_vec[i]();
460 }
461}
462#endif // __linux__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected