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

Function create_queue

src/tscore/llqueue.cc:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71#endif
72
73LLQ *
74create_queue()
75{
76 LLQ *new_val = static_cast<LLQ *>(ats_malloc(sizeof(LLQ)));
77
78 ink_sem_init(&(new_val->sema), 0);
79 ink_mutex_init(&(new_val->mux));
80
81 new_val->head = new_val->tail = new_val->free = nullptr;
82 new_val->len = new_val->highwater = 0;
83
84 return new_val;
85}
86
87// matching delete function, only for empty queue!
88void

Callers 1

testfunFunction · 0.85

Calls 3

ats_mallocFunction · 0.85
ink_sem_initFunction · 0.85
ink_mutex_initFunction · 0.85

Tested by

no test coverage detected