]> git.sesse.net Git - vlc/blobdiff - include/vlc_threads.h
Thread fatal errors: add function name, and some Win32 support
[vlc] / include / vlc_threads.h
index 6970358b4167731ceabe3aa62fc13a12efbca482..e19d8747759f218d8ee7916971f6d9b293c79b53 100644 (file)
@@ -201,12 +201,12 @@ enum {
 #define vlc_mutex_lock( P_MUTEX )                                           \
     __vlc_mutex_lock( __FILE__, __LINE__, P_MUTEX )
 
-VLC_EXPORT(void, vlc_pthread_fatal, (const char *action, int error, const char *file, unsigned line));
+VLC_EXPORT(void, vlc_thread_fatal, (const char *action, int error, const char *function, const char *file, unsigned line));
 
 #if defined(LIBVLC_USE_PTHREAD)
 # define VLC_THREAD_ASSERT( action ) \
     if (val) \
-        vlc_pthread_fatal (action, val, psz_file, i_line)
+        vlc_thread_fatal (action, val, __func__, psz_file, i_line)
 #else
 # define VLC_THREAD_ASSERT ((void)(val))
 #endif