typedef pthread_cond_t vlc_cond_t;
typedef pthread_key_t vlc_threadvar_t;
-#elif defined( WIN32 ) || defined( UNDER_CE )
+#elif defined( WIN32 )
typedef struct
{
HANDLE handle;
void *data;
} *vlc_thread_t;
-typedef HANDLE vlc_mutex_t;
+typedef struct
+{
+ CRITICAL_SECTION mutex;
+ LONG owner;
+ unsigned recursion;
+ bool recursive;
+}
+vlc_mutex_t;
typedef HANDLE vlc_cond_t;
typedef DWORD vlc_threadvar_t;
#define vlc_thread_ready vlc_object_signal
-VLC_EXPORT(void, vlc_thread_fatal, (const char *action, int error, const char *function, const char *file, unsigned line));
-
#if defined(LIBVLC_USE_PTHREAD)
# define vlc_assert_locked( m ) \
assert (pthread_mutex_lock (m) == EDEADLK)