| 1030 | } |
| 1031 | |
| 1032 | void |
| 1033 | PluginVCCore::destroy() |
| 1034 | { |
| 1035 | Dbg(dbg_ctl_pvc, "[%u] Destroying PluginVCCore at %p", id, this); |
| 1036 | |
| 1037 | ink_assert(active_vc.closed == true || !connected); |
| 1038 | active_vc.mutex = nullptr; |
| 1039 | active_vc.read_state.vio.buffer.clear(); |
| 1040 | active_vc.write_state.vio.buffer.clear(); |
| 1041 | active_vc.magic = PLUGIN_VC_MAGIC_DEAD; |
| 1042 | |
| 1043 | ink_assert(passive_vc.closed == true || !connected); |
| 1044 | passive_vc.mutex = nullptr; |
| 1045 | passive_vc.read_state.vio.buffer.clear(); |
| 1046 | passive_vc.write_state.vio.buffer.clear(); |
| 1047 | passive_vc.magic = PLUGIN_VC_MAGIC_DEAD; |
| 1048 | |
| 1049 | this->mutex = nullptr; |
| 1050 | delete this; |
| 1051 | } |
| 1052 | |
| 1053 | PluginVC * |
| 1054 | PluginVCCore::connect() |