[vlc-devel] commit: vlc_thread_ready: remove ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Jul 10 21:27:58 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Jul 10 22:29:56 2008 +0300| [f698b433edd2d9ec7769f750586e6faa29da8074]

vlc_thread_ready: remove

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f698b433edd2d9ec7769f750586e6faa29da8074
---

 include/vlc_threads.h |    9 ++-------
 src/libvlccore.sym    |    1 -
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 2ce2302..f025fae 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -171,9 +171,10 @@ VLC_EXPORT( int, vlc_threadvar_create, (vlc_threadvar_t * , void (*) (void *) )
 VLC_EXPORT( void, vlc_threadvar_delete, (vlc_threadvar_t *) );
 VLC_EXPORT( int,  __vlc_thread_create, ( vlc_object_t *, const char *, int, const char *, void * ( * ) ( void * ), int, bool ) );
 VLC_EXPORT( int,  __vlc_thread_set_priority, ( vlc_object_t *, const char *, int, int ) );
-VLC_EXPORT( void, __vlc_thread_ready,  ( vlc_object_t * ) );
 VLC_EXPORT( void, __vlc_thread_join,   ( vlc_object_t *, const char *, int ) );
 
+#define vlc_thread_ready vlc_object_signal
+
 /*****************************************************************************
  * vlc_mutex_lock: lock a mutex
  *****************************************************************************/
@@ -597,12 +598,6 @@ static inline void barrier (void)
     __vlc_thread_set_priority( VLC_OBJECT(P_THIS), __FILE__, __LINE__, PRIORITY )
 
 /*****************************************************************************
- * vlc_thread_ready: tell the parent thread we were successfully spawned
- *****************************************************************************/
-#define vlc_thread_ready( P_THIS )                                          \
-    __vlc_thread_ready( VLC_OBJECT(P_THIS) )
-
-/*****************************************************************************
  * vlc_thread_join: wait until a thread exits
  *****************************************************************************/
 #define vlc_thread_join( P_THIS )                                           \
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index da79c2c..3360dbd 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -463,7 +463,6 @@ vlc_strtoll
 vlc_submodule_create
 __vlc_thread_create
 __vlc_thread_join
-__vlc_thread_ready
 __vlc_thread_set_priority
 vlc_threadvar_create
 vlc_threadvar_delete




More information about the vlc-devel mailing list