| 1005 | } |
| 1006 | |
| 1007 | void |
| 1008 | PluginVCCore::init(int64_t buffer_index, int64_t buffer_water_mark) |
| 1009 | { |
| 1010 | mutex = new_ProxyMutex(); |
| 1011 | |
| 1012 | active_vc.vc_type = PLUGIN_VC_ACTIVE; |
| 1013 | active_vc.other_side = &passive_vc; |
| 1014 | active_vc.core_obj = this; |
| 1015 | active_vc.mutex = mutex; |
| 1016 | active_vc.thread = this_ethread(); |
| 1017 | |
| 1018 | passive_vc.vc_type = PLUGIN_VC_PASSIVE; |
| 1019 | passive_vc.other_side = &active_vc; |
| 1020 | passive_vc.core_obj = this; |
| 1021 | passive_vc.mutex = mutex; |
| 1022 | passive_vc.thread = active_vc.thread; |
| 1023 | |
| 1024 | buffer_size = BUFFER_SIZE_FOR_INDEX(buffer_index); |
| 1025 | |
| 1026 | Dbg(dbg_ctl_pvc, |
| 1027 | "[%u] Created PluginVCCore at %p, active %p, passive %p, buffer_index %" PRId64 ", buffer_size %" PRId64 |
| 1028 | ", buffer_water_mark %" PRId64, |
| 1029 | id, this, &active_vc, &passive_vc, buffer_index, buffer_size, buffer_water_mark); |
| 1030 | } |
| 1031 | |
| 1032 | void |
| 1033 | PluginVCCore::destroy() |
no test coverage detected