MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / _mq_get_csize

Function _mq_get_csize

modules/mqueue/mqueue_api.c:519–532  ·  view source on GitHub ↗

* Return head->csize for a given queue */

Source from the content-addressed store, hash-verified

517 * Return head->csize for a given queue
518 */
519int _mq_get_csize(str *name)
520{
521 mq_head_t *mh = mq_head_get(name);
522 int mqueue_size = 0;
523
524 if(mh == NULL)
525 return -1;
526
527 lock_get(&mh->lock);
528 mqueue_size = mh->csize;
529 lock_release(&mh->lock);
530
531 return mqueue_size;
532}

Callers 5

pv_get_mq_sizeFunction · 0.85
mqueue_db_save_queueFunction · 0.85
w_mq_sizeFunction · 0.85
mi_get_sizeFunction · 0.85
mi_fetchFunction · 0.85

Calls 3

mq_head_getFunction · 0.85
lock_getFunction · 0.85
lock_releaseFunction · 0.85

Tested by

no test coverage detected