]> git.sesse.net Git - vlc/blobdiff - include/vlc_threads.h
Use var_Inherit* instead of var_CreateGet*.
[vlc] / include / vlc_threads.h
index e9d1c8da453c82dacac5f9b157df3d76f78fd757..3770e2fa0f401e7b6f0760e52fa1451c98028f9a 100644 (file)
@@ -442,4 +442,16 @@ class vlc_mutex_locker
 };
 #endif
 
+enum {
+   VLC_AVCODEC_MUTEX = 0,
+   VLC_GCRYPT_MUTEX,
+   VLC_XLIB_MUTEX,
+   /* Insert new entry HERE */
+   VLC_MAX_MUTEX
+};
+
+VLC_EXPORT( void, vlc_global_mutex, ( unsigned, bool ) );
+#define vlc_global_lock( n ) vlc_global_mutex( n, true )
+#define vlc_global_unlock( n ) vlc_global_mutex( n, false )
+
 #endif /* !_VLC_THREADS_H */