Commit 7783a1ce authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Cleanup helper for unlocking

parent aa6b5c55
......@@ -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
*****************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment