[vlc-devel] commit: set_destructor has no need for the structure lock ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed May 7 20:49:10 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Wed May 7 21:50:25 2008 +0300| [b8909e164c63626771d3751e94d1c3f8e7af6c13]
set_destructor has no need for the structure lock
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b8909e164c63626771d3751e94d1c3f8e7af6c13
---
src/misc/objects.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/misc/objects.c b/src/misc/objects.c
index 2395698..97db4e1 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -307,10 +307,7 @@ void __vlc_object_set_destructor( vlc_object_t *p_this,
vlc_destructor_t pf_destructor )
{
vlc_object_internals_t *p_priv = vlc_internals(p_this );
-
- vlc_mutex_lock( &structure_lock );
p_priv->pf_destructor = pf_destructor;
- vlc_mutex_unlock( &structure_lock );
}
/**
More information about the vlc-devel
mailing list