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

Function init_HttpProxyServer

src/proxy/http/HttpProxyServerMain.cc:309–327  ·  view source on GitHub ↗

Increment the counter to keep track of how many et_net threads * we have started. This function is scheduled at the start of each * et_net thread using schedule_spawn(). We also check immediately * after incrementing the counter to see whether all of the et_net * threads have started such that we can notify main() to call * start_HttpProxyServer(). */

Source from the content-addressed store, hash-verified

307 * start_HttpProxyServer().
308 */
309void
310init_HttpProxyServer()
311{
312 if (eventProcessor.has_tg_started(ET_NET)) {
313 std::unique_lock<std::mutex> lock(proxyServerMutex);
314 et_net_threads_ready = true;
315 lock.unlock();
316 proxyServerCheck.notify_one();
317 }
318
319#if TS_USE_QUIC == 1
320 if (eventProcessor.has_tg_started(ET_UDP)) {
321 std::unique_lock<std::mutex> lock(etUdpMutex);
322 et_udp_threads_ready = true;
323 lock.unlock();
324 etUdpCheck.notify_one();
325 }
326#endif
327}
328
329void
330start_HttpProxyServer()

Callers

nothing calls this directly

Calls 2

has_tg_startedMethod · 0.80
unlockMethod · 0.45

Tested by

no test coverage detected