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

Method blocking_invoke

src/api/APIHook.cc:64–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64int
65APIHook::blocking_invoke(int event, void *edata) const
66{
67 if (event == EVENT_IMMEDIATE || event == EVENT_INTERVAL || event == TS_EVENT_HTTP_TXN_CLOSE) {
68 if (ink_atomic_increment((int *)&m_cont->m_event_count, 1) < 0) {
69 ink_assert(!"not reached");
70 }
71 }
72
73 WEAK_SCOPED_MUTEX_LOCK(lock, m_cont->mutex, this_ethread());
74
75 return m_cont->handleEvent(event, edata);
76}

Callers 1

loadSecretMethod · 0.45

Calls 3

ink_atomic_incrementFunction · 0.85
this_ethreadFunction · 0.85
handleEventMethod · 0.45

Tested by

no test coverage detected