MCPcopy Create free account
hub / github.com/Tencent/phxsql / run

Method run

phxsqlproxy/worker_thread.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void WorkerThread::run() {
43 co_init_curr_thread_env();
44 co_enable_hook_sys();
45 monitor_routine_->start();
46 for (size_t i = 0; i < io_routines_.size(); ++i) {
47 io_routines_[i]->start();
48 }
49 connection_dispatcher_->start();
50 co_eventloop(co_get_epoll_ct(), TickFunc, 0);
51}
52
53int WorkerThread::AssignFD(int fd) {
54 return connection_dispatcher_->AssignFD(fd);

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected