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

Function get_dynamic_lock

modules/cfgutils/script_locks.c:95–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95int get_dynamic_lock(struct sip_msg *msg, str *string)
96{
97 int hash;
98
99 hash = (int)core_hash(string, NULL, lock_pool_size);
100
101 LM_DBG("Getting dynamic lock----- %d\n", hash);
102 lock_set_get(dynamic_locks, hash);
103 LM_DBG("Got dynamic lock----- %d\n", hash);
104
105 return 1;
106}
107
108int release_dynamic_lock(struct sip_msg *msg, str *string)
109{

Callers

nothing calls this directly

Calls 2

core_hashFunction · 0.85
lock_set_getFunction · 0.85

Tested by

no test coverage detected