threads: use a common dummy vlc_control_cancel when LIBVLC_USE_PTHREAD_CLEANUP

This commit is contained in:
Steve Lhomme 2020-02-10 13:51:45 +01:00
parent 534cfb963a
commit 7ca3c3640b
4 changed files with 9 additions and 18 deletions

View File

@ -329,12 +329,6 @@ void vlc_testcancel (void)
pthread_exit(NULL);
}
noreturn void vlc_control_cancel (int cmd, ...)
{
(void) cmd;
vlc_assert_unreachable ();
}
void vlc_cancel_addr_set(atomic_uint *addr)
{
vlc_thread_t th = vlc_thread_self();

View File

@ -531,12 +531,6 @@ void vlc_testcancel (void)
pthread_testcancel ();
}
void vlc_control_cancel (int cmd, ...)
{
(void) cmd;
vlc_assert_unreachable ();
}
vlc_tick_t vlc_tick_now (void)
{
vlc_clock_setup();

View File

@ -294,3 +294,12 @@ noreturn update_release_t *update_GetRelease(update_t *u)
vlc_assert_unreachable();
}
#endif /* !UPDATE_CHECK */
#include <vlc_threads.h>
#if defined(LIBVLC_USE_PTHREAD_CLEANUP)
noreturn void vlc_control_cancel (int cmd, ...)
{
(void) cmd;
vlc_assert_unreachable ();
}
#endif

View File

@ -554,12 +554,6 @@ void vlc_testcancel (void)
pthread_testcancel ();
}
noreturn void vlc_control_cancel (int cmd, ...)
{
(void) cmd;
vlc_assert_unreachable ();
}
vlc_tick_t vlc_tick_now (void)
{
struct timespec ts;