[vlc-devel] [PATCH 1/3] win32: reorder the code
Steve Lhomme
robux4 at videolabs.io
Mon May 23 17:28:09 CEST 2016
---
src/win32/thread.c | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/win32/thread.c b/src/win32/thread.c
index 1338308..c711211 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -45,6 +45,25 @@ static vlc_cond_t super_variable;
#define IS_INTERRUPTIBLE (!VLC_WINSTORE_APP || _WIN32_WINNT >= 0x0A00)
+/*** Threads ***/
+static DWORD thread_key;
+
+struct vlc_thread
+{
+ HANDLE id;
+
+ bool killable;
+#if IS_INTERRUPTIBLE
+ bool killed;
+#else
+ atomic_bool killed;
+#endif
+ vlc_cleanup_t *cleaners;
+
+ void *(*entry) (void *);
+ void *data;
+};
+
/*** Common helpers ***/
#if !IS_INTERRUPTIBLE
static bool isCancelled(void);
@@ -441,25 +460,6 @@ retry:
vlc_mutex_unlock(&super_mutex);
}
-/*** Threads ***/
-static DWORD thread_key;
-
-struct vlc_thread
-{
- HANDLE id;
-
- bool killable;
-#if IS_INTERRUPTIBLE
- bool killed;
-#else
- atomic_bool killed;
-#endif
- vlc_cleanup_t *cleaners;
-
- void *(*entry) (void *);
- void *data;
-};
-
#if !IS_INTERRUPTIBLE
static bool isCancelled(void)
{
--
2.7.2.windows.1
More information about the vlc-devel
mailing list