]> git.sesse.net Git - vlc/commit
Allow vlc_object_attach to reparent directly
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 28 Jan 2010 20:09:39 +0000 (22:09 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 28 Jan 2010 20:09:39 +0000 (22:09 +0200)
commit5d90ca7cc21e1ba7691765e232c047668bb81578
treec9c6e9aca2b681318c89f789d107c9ccf6ed6fc2
parentc66586a5445aa3405403ca47ee37db7a7bd64481
Allow vlc_object_attach to reparent directly

This saves one unlock/lock cycle, and makes sure that the reparented
object remains in the tree at all times. This does not fix the race in
reparenting, but it reduces its window of opportunity.

This also makes vlc_object_detach() essentially redumdant with
vlc_object_release() and vlc_object_attach().
src/misc/objects.c