0017-Remove-thread-local.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 74c54ed19cf03e8f8b11266163d08f0026228b73 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
  3. Date: Mon, 17 Jul 2017 17:03:24 +0200
  4. Subject: [PATCH 17/18] Remove thread local
  5. ---
  6. src/misc/interrupt.c | 2 +-
  7. src/misc/variables.c | 2 +-
  8. 2 files changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/src/misc/interrupt.c b/src/misc/interrupt.c
  10. index 3fafaa4183..02e1049c4b 100644
  11. --- a/src/misc/interrupt.c
  12. +++ b/src/misc/interrupt.c
  13. @@ -43,7 +43,7 @@
  14. #include "interrupt.h"
  15. #include "libvlc.h"
  16. -static thread_local vlc_interrupt_t *vlc_interrupt_var;
  17. +static vlc_interrupt_t *vlc_interrupt_var;
  18. /**
  19. * Initializes an interruption context.
  20. diff --git a/src/misc/variables.c b/src/misc/variables.c
  21. index d441684c06..c1544836b2 100644
  22. --- a/src/misc/variables.c
  23. +++ b/src/misc/variables.c
  24. @@ -1378,7 +1378,7 @@ void DumpVariables(vlc_object_t *obj)
  25. vlc_mutex_unlock(&vlc_internals(obj)->var_lock);
  26. }
  27. -static thread_local void *twalk_ctx;
  28. +static vlc_threadvar_t *twalk_ctx;
  29. static void TwalkGetNames(const void *data, const VISIT which, const int depth)
  30. {
  31. --
  32. 2.13.2