chan_local: Misc lock and ref tweaks.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 17 Dec 2012 20:34:25 +0000 (20:34 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 17 Dec 2012 20:34:25 +0000 (20:34 +0000)
commit87cb8e94cda0194da5bfebd5034fcc318e65477e
treeeea280f63b03b377e3e02fdebe151e7c780bcdd5
parentde026cf92f3815fbf02cd72540cdeff30f79f846
chan_local: Misc lock and ref tweaks.

* awesome_locking() does not need to thrash the pvt lock as much.

* local_setoption() does not need to check for NULL pvt on cleanup since
it will never be NULL.

* Made ref the pvt before locking for consistency.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_local.c