[vlc-devel] commit: Cleanup helper for unlocking ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Aug 27 22:57:31 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Aug 10 21:43:05 2008 +0300| [7783a1cec9d1ac33b81c181da859dc1d6fc7cf9a] | committer: Rémi Denis-Courmont 

Cleanup helper for unlocking

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7783a1cec9d1ac33b81c181da859dc1d6fc7cf9a
---

 include/vlc_threads.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index e044e56..c6be0ea 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -373,6 +373,12 @@ struct vlc_cleanup_t
 
 #endif /* LIBVLC_USE_PTHREAD */
 
+static inline void vlc_cleanup_lock (void *lock)
+{
+    vlc_mutex_unlock ((vlc_mutex_t *)lock);
+}
+#define mutex_cleanup_push( lock ) vlc_cleanup_push (vlc_cleanup_lock, lock)
+
 /*****************************************************************************
  * vlc_cond_init: initialize a condition
  *****************************************************************************/




More information about the vlc-devel mailing list