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

Method ProtectedQueue

src/iocore/eventsystem/P_ProtectedQueue.h:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include "iocore/eventsystem/EventSystem.h"
33
34TS_INLINE
35ProtectedQueue::ProtectedQueue()
36{
37 Event e;
38 ink_mutex_init(&lock);
39 ink_atomiclist_init(&al, "ProtectedQueue", (char *)&e.link.next - (char *)&e);
40 ink_cond_init(&might_have_data);
41}
42
43TS_INLINE void
44ProtectedQueue::signal()

Callers

nothing calls this directly

Calls 3

ink_mutex_initFunction · 0.85
ink_atomiclist_initFunction · 0.85
ink_cond_initFunction · 0.85

Tested by

no test coverage detected