| 131 | } // end anonymous namespace |
| 132 | |
| 133 | int |
| 134 | MCAccept::main_event(int event, void *data) |
| 135 | { |
| 136 | if (event == NET_EVENT_ACCEPT) { |
| 137 | NetVConnection *netvc = static_cast<NetVConnection *>(data); |
| 138 | MC *mc = theMCAllocator.alloc(); |
| 139 | if (!mutex->thread_holding) { |
| 140 | mc->new_connection(netvc, netvc->thread); |
| 141 | } else { |
| 142 | mc->new_connection(netvc, mutex->thread_holding); |
| 143 | } |
| 144 | return EVENT_CONT; |
| 145 | } else { |
| 146 | Fatal("tsmemcache accept received fatal error: errno = %d", -(static_cast<int>((intptr_t)data))); |
| 147 | return EVENT_CONT; |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | void |
| 152 | MC::new_connection(NetVConnection *netvc, EThread *thread) |
nothing calls this directly
no test coverage detected