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

Function init_queue

example/plugins/c-api/thread_pool/thread.cc:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37static pthread_mutex_t cond_mutex;
38
39void
40init_queue(Queue *q)
41{
42 q->head = nullptr; /* Pointer on head cell */
43 q->tail = nullptr; /* Pointer on tail cell */
44 q->nb_elem = 0; /* Nb elem in the queue */
45 q->mutex = TSMutexCreate();
46}
47
48void
49add_to_queue(Queue *q, void *data)

Callers 1

TSPluginInitFunction · 0.85

Calls 1

TSMutexCreateFunction · 0.85

Tested by

no test coverage detected