| 101 | } |
| 102 | |
| 103 | void CSocketImpl::SyncDisconnection() { |
| 104 | if (!_read_event->_client_socket) { |
| 105 | _read_event->_client_socket = memshared_from_this(); |
| 106 | } |
| 107 | |
| 108 | if (_event_actions) { |
| 109 | _read_event->_event_flag_set |= (EVENT_DISCONNECT | ERR_CONNECT_CLOSE); |
| 110 | _event_actions->AddDisconnection(_read_event); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | void CSocketImpl::PostTask(std::function<void(void)>& func) { |
| 115 | _event_actions->PostTask(func); |
nothing calls this directly
no test coverage detected