MCPcopy Create free account
hub / github.com/apache/trafficserver / init

Method init

src/proxy/PluginVC.cc:1007–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005}
1006
1007void
1008PluginVCCore::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
1032void
1033PluginVCCore::destroy()

Callers 4

allocMethod · 0.45
new_transactionMethod · 0.45
do_api_calloutMethod · 0.45
_handle_if_sslMethod · 0.45

Calls 2

new_ProxyMutexFunction · 0.85
this_ethreadFunction · 0.85

Tested by

no test coverage detected