mirror of https://code.videolan.org/videolan/vlc
vlc_assert_locked is private
This commit is contained in:
parent
057a9633ab
commit
08b2e6483a
|
@ -172,13 +172,6 @@ enum {
|
|||
|
||||
#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.
|
||||
* This function must be called before entering a piece of code that is not
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include <vlc_common.h>
|
||||
#include <vlc_aout.h>
|
||||
#include "aout_internal.h"
|
||||
#include "libvlc.h"
|
||||
|
||||
/*
|
||||
* Instances management (internal and external)
|
||||
|
|
|
@ -54,6 +54,13 @@ void vlc_thread_cancel (vlc_object_t *);
|
|||
void vlc_trace (const char *fn, const char *file, unsigned 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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue