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

Function dm_cond_unref

modules/aaa_diameter/dm_impl.h:154–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static inline void dm_cond_unref(struct dm_cond *cond)
155{
156 if (!cond || cond->type == DM_TYPE_COND)
157 return;
158
159 if (__atomic_sub_fetch(&cond->ref, 1, __ATOMIC_SEQ_CST) == 0)
160 shm_free(cond);
161}
162int init_mutex_cond(pthread_mutex_t *mutex, pthread_cond_t *cond);
163
164extern struct list_head dm_unreplied_req;

Callers 7

dm_cond_event_resumeFunction · 0.85
dm_cond_signalFunction · 0.85
dm_auth_replyFunction · 0.85
dm_receive_msgFunction · 0.85
_dm_destroy_messageFunction · 0.85
dm_free_sync_msgFunction · 0.85

Calls 1

shm_freeFunction · 0.85

Tested by

no test coverage detected