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

Function init_cell_lock

modules/tm/lock.c:227–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225
226
227int init_cell_lock( struct cell *cell )
228{
229#ifdef GEN_LOCK_T_PREFERED
230 lock_init(&cell->reply_mutex);
231#else
232 cell->reply_mutex.semaphore_set=reply_semaphore;
233 cell->reply_mutex.semaphore_index = cell->hash_index % sem_nr;
234#endif /* GEN_LOCK_T_PREFERED */
235 return 0;
236}
237
238int init_entry_lock( struct s_table* ht, struct entry *entry )
239{

Callers 1

build_cellFunction · 0.85

Calls 1

lock_initFunction · 0.85

Tested by

no test coverage detected