[vlc-devel] commit: Detach the children at object destruction ( Rafaël Carré )
pdherbemont at free.fr
Fri May 16 17:45:19 CEST 2008
On May 16, 2008, at 5:17 PM, Rémi Denis-Courmont wrote:
> Le Friday 16 May 2008 18:11:08 Pierre d'Herbemont, vous avez écrit :
>> On May 16, 2008, at 4:39 PM, Rémi Denis-Courmont wrote:
>>> Le Friday 16 May 2008 15:48:10 Pierre d'Herbemont, vous avez écrit :
>>>>> I have a patch for that. Please review and apply.<0001-objects-
>>>> (without typo this time)
>>> This does not work. For a start, outside of the refspin, there is no
>>> that i_refcount is in a safe, so if another thread is yielding/
>>> releasing the
>>> parent at the same time, you will get undefined behaviour.
>> Well, added the forgotten spinlock locking.
> Looks horrible. I don't understand what you're trying to solve here.
Trying to fix the fact that you can no longer detach from a children
object from its parent, because p_parent is set to NULL, when parent
is released first.
(See the commit log)
More information about the vlc-devel