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

Function lock_set_release

lock_ops.h:390–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390inline static void lock_set_release(gen_lock_set_t* s, int n)
391{
392 struct sembuf sop;
393 sop.sem_num=n;
394 sop.sem_op=1; /* up */
395 sop.sem_flg=0;
396tryagain:
397 if (semop(s->semid, &sop, 1)==-1){
398 if (errno==EINTR){
399 /* very improbable */
400 LM_DBG("signal received while releasing mutex\n");
401 goto tryagain;
402 }else{
403 LM_CRIT("%s (%d)\n", strerror(errno), errno);
404 }
405 }
406
407}
408#else
409#error "no lock set method selected"
410#endif

Callers 15

release_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