| 134 | } |
| 135 | |
| 136 | void run() { |
| 137 | co_init_curr_thread_env(); |
| 138 | for (int i = 0; i < routine_num_; ++i) { |
| 139 | TestPHXSqlProxyRoutine * routine = new TestPHXSqlProxyRoutine(config_, thread_idx_, i); |
| 140 | routine->start(); |
| 141 | } |
| 142 | co_eventloop(co_get_epoll_ct(), 0, 0); |
| 143 | } |
| 144 | |
| 145 | private: |
| 146 | phxsqlproxy::PHXSqlProxyConfig * config_; |