[vlc-commits] win32: reorder the code
Steve Lhomme
git at videolan.org
Tue May 24 23:59:11 CEST 2016
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Mon May 23 17:28:09 2016 +0200| [25aec0553bff11bc28b10b05f21ecc02b7f54e32] | committer: Jean-Baptiste Kempf
win32: reorder the code
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25aec0553bff11bc28b10b05f21ecc02b7f54e32
---
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 34ad2d6..12cbed6 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);
@@ -425,25 +444,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)
{
More information about the vlc-commits
mailing list