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

Function lock_set_get

lock_ops.h:373–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373inline static void lock_set_get(gen_lock_set_t* s, int n)
374{
375 struct sembuf sop;
376 sop.sem_num=n;
377 sop.sem_op=-1; /* down */
378 sop.sem_flg=0;
379tryagain:
380 if (semop(s->semid, &sop, 1)==-1){
381 if (errno==EINTR){
382 LM_DBG("signal received while waiting on a mutex\n");
383 goto tryagain;
384 }else{
385 LM_CRIT("%s (%d)\n", strerror(errno), errno);
386 }
387 }
388}
389
390inline static void lock_set_release(gen_lock_set_t* s, int n)
391{

Callers 15

get_dynamic_lockFunction · 0.85
xjab_connectionsFunction · 0.85
xj_wlist_set_pidFunction · 0.85
xj_wlist_checkFunction · 0.85
xj_wlist_getFunction · 0.85
xj_wlist_set_flagFunction · 0.85
xj_wlist_delFunction · 0.85
xj_wlist_clean_jobsFunction · 0.85
b2bl_callback_agentFunction · 0.85
b2bl_callback_customerFunction · 0.85
cc_timer_agentsFunction · 0.85
cc_timer_callsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected