]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Make aor named lock a mutex. 73/3473/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 3 Aug 2016 21:24:39 +0000 (16:24 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 11 Aug 2016 16:57:51 +0000 (11:57 -0500)
commite1248c30756ed9f48ba0f06c46a876c5d08cbb11
tree977c7dd0686c131445f353356665629eb72f1536
parent1a3cc843718a35eb69168304c54ec9e7caec6ffd
res_pjsip: Make aor named lock a mutex.

The named aor lock was always being locked for writes so a rwlock adds no
benefit and may be slower because rwlocks are biased toward read locking.

Change-Id: I8c5c2c780eb30ce5441832257beeb3506fd12b28
main/named_locks.c
res/res_pjsip/location.c
res/res_pjsip_registrar.c
res/res_pjsip_registrar_expire.c