[vlc-commits] android: thread: use standard thread_local keyword

Hugo Beauzée-Luyssen git at videolan.org
Tue Sep 26 15:47:02 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Sep 26 14:18:25 2017 +0200| [5635bdc7157a81a266f7dbd6ed24eb1df6062ded] | committer: Hugo Beauzée-Luyssen

android: thread: use standard thread_local keyword

Instead of the gcc extension

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5635bdc7157a81a266f7dbd6ed24eb1df6062ded
---

 src/android/thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/android/thread.c b/src/android/thread.c
index ee72cbb9bf..606f40ad12 100644
--- a/src/android/thread.c
+++ b/src/android/thread.c
@@ -159,7 +159,7 @@ struct vlc_thread
     bool killable;
 };
 
-static __thread struct vlc_thread *thread = NULL;
+static thread_local struct vlc_thread *thread = NULL;
 
 vlc_thread_t vlc_thread_self (void)
 {



More information about the vlc-commits mailing list