Commit d007a98f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_clone, vlc_join: untangle objects and threads

parent 079a3e8f
...@@ -122,7 +122,13 @@ typedef pthread_cond_t vlc_cond_t; ...@@ -122,7 +122,13 @@ typedef pthread_cond_t vlc_cond_t;
typedef pthread_key_t vlc_threadvar_t; typedef pthread_key_t vlc_threadvar_t;
#elif defined( WIN32 ) || defined( UNDER_CE ) #elif defined( WIN32 ) || defined( UNDER_CE )
typedef HANDLE vlc_thread_t; typedef struct
{
HANDLE handle;
void *(*entry) (void *);
void *data;
} *vlc_thread_t;
typedef HANDLE vlc_mutex_t; typedef HANDLE vlc_mutex_t;
typedef HANDLE vlc_cond_t; typedef HANDLE vlc_cond_t;
typedef DWORD vlc_threadvar_t; typedef DWORD vlc_threadvar_t;
...@@ -170,6 +176,9 @@ VLC_EXPORT( int, __vlc_thread_create, ( vlc_object_t *, const char *, int, cons ...@@ -170,6 +176,9 @@ VLC_EXPORT( int, __vlc_thread_create, ( vlc_object_t *, const char *, int, cons
VLC_EXPORT( int, __vlc_thread_set_priority, ( vlc_object_t *, const char *, int, int ) ); VLC_EXPORT( int, __vlc_thread_set_priority, ( vlc_object_t *, const char *, int, int ) );
VLC_EXPORT( void, __vlc_thread_join, ( vlc_object_t *, const char *, int ) ); VLC_EXPORT( void, __vlc_thread_join, ( vlc_object_t *, const char *, int ) );
VLC_EXPORT( int, vlc_clone, (vlc_thread_t *, void * (*) (void *), void *, int) );
VLC_EXPORT( int, vlc_join, (vlc_thread_t, void **) );
#define vlc_thread_ready vlc_object_signal #define vlc_thread_ready vlc_object_signal
/***************************************************************************** /*****************************************************************************
......
...@@ -416,6 +416,7 @@ vlc_b64_decode_binary_to_buffer ...@@ -416,6 +416,7 @@ vlc_b64_decode_binary_to_buffer
vlc_b64_encode vlc_b64_encode
vlc_b64_encode_binary vlc_b64_encode_binary
VLC_Changeset VLC_Changeset
vlc_clone
VLC_CompileBy VLC_CompileBy
VLC_CompileDomain VLC_CompileDomain
VLC_CompileHost VLC_CompileHost
...@@ -447,6 +448,7 @@ vlc_iconv_close ...@@ -447,6 +448,7 @@ vlc_iconv_close
vlc_iconv_open vlc_iconv_open
vlc_inet_ntop vlc_inet_ntop
vlc_inet_pton vlc_inet_pton
vlc_join
__vlc_list_children __vlc_list_children
__vlc_list_find __vlc_list_find
vlc_list_release vlc_list_release
......
This diff is collapsed.
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