[vlc-devel] [PATCH v2 02/18] Rename android/thread.c to posix/thread_nocancel.c

Dennis Hamester dennis.hamester at startmail.com
Mon Mar 13 11:11:36 CET 2017


The existing thread implementation for systems, which lack proper
pthread cancel support, can be used not just on Android but other
platforms as well (NaCl for example).
---
 src/Makefile.am                                   | 2 +-
 src/{android/thread.c => posix/thread_nocancel.c} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename src/{android/thread.c => posix/thread_nocancel.c} (99%)

diff --git a/src/Makefile.am b/src/Makefile.am
index 1e0e70fa86..72227dc65c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -391,7 +391,7 @@ if HAVE_ANDROID
 libvlccore_la_SOURCES += \
 	android/error.c \
 	android/specific.c \
-	android/thread.c \
+	posix/thread_nocancel.c \
 	linux/cpu.c \
 	linux/dirs.c \
 	linux/thread.c
diff --git a/src/android/thread.c b/src/posix/thread_nocancel.c
similarity index 99%
rename from src/android/thread.c
rename to src/posix/thread_nocancel.c
index fcffd7a827..8056dbc209 100644
--- a/src/android/thread.c
+++ b/src/posix/thread_nocancel.c
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * thread.c : android pthread back-end for LibVLC
+ * thread_nocancel.c : pthread back-end with custom cancel based on futexes
  *****************************************************************************
  * Copyright (C) 1999-2016 VLC authors and VideoLAN
  *
-- 
2.12.0



More information about the vlc-devel mailing list