[asterisk-dev] ao2_t_unlink(peers, peer, "...") question
Kirill 'Big K' Katsnelson
kkm at adaptiveai.com
Fri Feb 26 03:08:20 CST 2010
On 100225 2357, Russell Bryant wrote:
> ----- "Kirill 'Big K' Katsnelson" <kkm at adaptiveai.com> wrote:
>
>> Is it kosher to attempt unlinking an object which is not in the list?
>> On the same page, is attempting to link an object to the list if that
>>
>> object is already in the list fatal, like ao2_t_link(peers, peer,
>> "...") if the peer is already in peers?
>
> The unlink() case is harmless.
> A double link() will result in an object being in the container twice, which is bad.
Thank you!
-kkm
More information about the asterisk-dev
mailing list