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

Function get_nbelem_queue

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

Source from the content-addressed store, hash-verified

107}
108
109int
110get_nbelem_queue(Queue *q)
111{
112 int nb;
113 TSMutexLock(q->mutex);
114 nb = q->nb_elem;
115 TSMutexUnlock(q->mutex);
116
117 return nb;
118}
119
120Job *
121job_create(TSCont contp, ExecFunc func, void *data)

Callers

nothing calls this directly

Calls 2

TSMutexLockFunction · 0.85
TSMutexUnlockFunction · 0.85

Tested by

no test coverage detected