vlc_assert_locked is private

This commit is contained in:
Rémi Denis-Courmont 2008-09-28 00:06:47 +03:00
parent 057a9633ab
commit 08b2e6483a
3 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -33,6 +33,7 @@
#include <vlc_common.h>
#include <vlc_aout.h>
#include "aout_internal.h"
#include "libvlc.h"
/*
* Instances management (internal and external)

View File

@ -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
*/