Commit 08b2e648 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_assert_locked is private

parent 057a9633
...@@ -172,13 +172,6 @@ enum { ...@@ -172,13 +172,6 @@ enum {
#define vlc_thread_ready vlc_object_signal #define vlc_thread_ready vlc_object_signal
#if defined(LIBVLC_USE_PTHREAD)
# define vlc_assert_locked( m ) \
assert (pthread_mutex_lock (m) == EDEADLK)
#else
# define vlc_assert_locked( m ) (void)m
#endif
/** /**
* Save the cancellation state and disable cancellation for the calling thread. * Save the cancellation state and disable cancellation for the calling thread.
* This function must be called before entering a piece of code that is not * This function must be called before entering a piece of code that is not
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_aout.h> #include <vlc_aout.h>
#include "aout_internal.h" #include "aout_internal.h"
#include "libvlc.h"
/* /*
* Instances management (internal and external) * Instances management (internal and external)
......
...@@ -54,6 +54,13 @@ void vlc_thread_cancel (vlc_object_t *); ...@@ -54,6 +54,13 @@ void vlc_thread_cancel (vlc_object_t *);
void vlc_trace (const char *fn, const char *file, unsigned line); void vlc_trace (const char *fn, const char *file, unsigned line);
#define vlc_backtrace() vlc_trace(__func__, __FILE__, __LINE__) #define vlc_backtrace() vlc_trace(__func__, __FILE__, __LINE__)
#if defined (LIBVLC_USE_PTHREAD) && !defined (NDEBUG)
# define vlc_assert_locked( m ) \
assert (pthread_mutex_lock (m) == EDEADLK)
#else
# define vlc_assert_locked( m ) (void)m
#endif
/* /*
* CPU capabilities * CPU capabilities
*/ */
......
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