void unlock_udomain(udomain_t* _d, str* _aor) { unsigned int sl; sl = get_hash_slot(_d, _aor); #ifdef GEN_LOCK_T_PREFERED lock_release(_d->table[sl].lock); #else ul_release_idx(_d->table[sl].lockidx); #endif }
void unlock_udomain(udomain_t* _d, str* _aor, str* _received_host, unsigned short received_port) { unsigned int sl; sl = get_hash_slot(_d, _aor, _received_host, received_port); #ifdef GEN_LOCK_T_PREFERED lock_release(_d->table[sl].lock); #else ul_release_idx(_d->table[sl].lockidx); #endif }