]> git.sesse.net Git - vlc/blobdiff - src/libvlc.h
Fix vlc_thread_ready invalid use of object_wait
[vlc] / src / libvlc.h
index 9cec25961e72e892943bd5aa2528f5afd0d0b91c..6cd9a0d93f9740e10fc24b84298fd41a2fba9935 100644 (file)
@@ -149,6 +149,10 @@ extern module_bank_t *p_module_bank;
 
 extern char *psz_vlcpath;
 
+#ifdef LIBVLC_USE_PTHREAD
+# include <semaphore.h> /* TODO: get rid of vlc_thread_ready and this */
+#endif
+
 /**
  * Private LibVLC data for each object.
  */
@@ -162,6 +166,11 @@ typedef struct vlc_object_internals_t
     /* Thread properties, if any */
     vlc_thread_t    thread_id;
     bool            b_thread;
+#ifdef LIBVLC_USE_PTHREAD
+    sem_t           thread_ready;
+#elif defined (WIN32)
+    HANDLE          thread_ready;
+#endif
 
     /* Objects thread synchronization */
     vlc_mutex_t     lock;