| 1105 | } |
| 1106 | |
| 1107 | int |
| 1108 | PluginVCCore::state_send_accept(int /* event ATS_UNUSED */, void * /* data ATS_UNUSED */) |
| 1109 | { |
| 1110 | if (connect_to->mutex == nullptr) { |
| 1111 | connect_to->handleEvent(NET_EVENT_ACCEPT, &passive_vc); |
| 1112 | } else { |
| 1113 | MUTEX_TRY_LOCK(lock, connect_to->mutex, this_ethread()); |
| 1114 | |
| 1115 | if (lock.is_locked()) { |
| 1116 | connect_to->handleEvent(NET_EVENT_ACCEPT, &passive_vc); |
| 1117 | } else { |
| 1118 | SET_HANDLER(&PluginVCCore::state_send_accept); |
| 1119 | eventProcessor.schedule_in(this, PVC_LOCK_RETRY_TIME); |
| 1120 | } |
| 1121 | } |
| 1122 | |
| 1123 | return 0; |
| 1124 | } |
| 1125 | |
| 1126 | // void PluginVCCore::attempt_delete() |
| 1127 | // |
nothing calls this directly
no test coverage detected