Commit 25aec055 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

win32: reorder the code

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent caec0648
...@@ -45,6 +45,25 @@ static vlc_cond_t super_variable; ...@@ -45,6 +45,25 @@ static vlc_cond_t super_variable;
#define IS_INTERRUPTIBLE (!VLC_WINSTORE_APP || _WIN32_WINNT >= 0x0A00) #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 ***/ /*** Common helpers ***/
#if !IS_INTERRUPTIBLE #if !IS_INTERRUPTIBLE
static bool isCancelled(void); static bool isCancelled(void);
...@@ -425,25 +444,6 @@ retry: ...@@ -425,25 +444,6 @@ retry:
vlc_mutex_unlock(&super_mutex); 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 #if !IS_INTERRUPTIBLE
static bool isCancelled(void) static bool isCancelled(void)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment