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

Function strings_share_lock

modules/cfgutils/script_locks.c:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120int strings_share_lock(struct sip_msg *msg, str *s1, str *s2)
121{
122 if (core_hash(s1, NULL, lock_pool_size) ==
123 core_hash(s2, NULL, lock_pool_size)) {
124
125 return 1;
126 }
127
128 return -1;
129}
130
131void destroy_script_locks(void)
132{

Callers

nothing calls this directly

Calls 1

core_hashFunction · 0.85

Tested by

no test coverage detected