[vlc-devel] commit: In debug builds, update thread waiting message for each join. ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Aug 2 20:54:37 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Aug 2 21:56:36 2008 +0300| [313be0327ce03f09d96351d2322613e37338f0e9] | committer: Rémi Denis-Courmont
In debug builds, update thread waiting message for each join.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=313be0327ce03f09d96351d2322613e37338f0e9
---
src/misc/threads.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/misc/threads.c b/src/misc/threads.c
index 9cac384..c106ad1 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -469,7 +469,9 @@ static THREAD_RTYPE thread_entry (void *data)
libvlc_priv_t *libpriv = libvlc_priv (obj->p_libvlc);
vlc_mutex_lock (&libpriv->threads_lock);
+#ifdef NDEBUG
if (--libpriv->threads_count == 0)
+#endif
vlc_cond_signal (&libpriv->threads_wait);
vlc_mutex_unlock (&libpriv->threads_lock);
return THREAD_RVAL;
More information about the vlc-devel
mailing list