]> git.sesse.net Git - vlc/commitdiff
Unexported vlc_thread_create/join.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 22 May 2011 20:30:32 +0000 (22:30 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 22 May 2011 20:36:03 +0000 (22:36 +0200)
They are not used by modules anymore.

include/vlc_threads.h
src/libvlc.h
src/libvlccore.sym

index 2ee0e368ca05a1d0150da1caab190d75e55d43e4..808b54eb31edabb1e3354603acfa25596b9eff29 100644 (file)
@@ -194,9 +194,8 @@ VLC_API int vlc_threadvar_create(vlc_threadvar_t * , void (*) (void *) );
 VLC_API void vlc_threadvar_delete(vlc_threadvar_t *);
 VLC_API int vlc_threadvar_set(vlc_threadvar_t, void *);
 VLC_API void * vlc_threadvar_get(vlc_threadvar_t);
-VLC_API int vlc_thread_create( vlc_object_t *, void * ( * ) ( vlc_object_t * ), int ) VLC_USED VLC_DEPRECATED;
+
 VLC_API int vlc_thread_set_priority( vlc_object_t *, int ) VLC_DEPRECATED;
-VLC_API void vlc_thread_join( vlc_object_t * ) VLC_DEPRECATED;
 
 VLC_API int vlc_clone(vlc_thread_t *, void * (*) (void *), void *, int) VLC_USED;
 VLC_API void vlc_cancel(vlc_thread_t);
@@ -393,15 +392,9 @@ static inline void barrier (void)
 #endif
 }
 
-#define vlc_thread_create( P_THIS, FUNC, PRIORITY ) \
-    vlc_thread_create( VLC_OBJECT(P_THIS), FUNC, PRIORITY )
-
 #define vlc_thread_set_priority( P_THIS, PRIORITY )                         \
     vlc_thread_set_priority( VLC_OBJECT(P_THIS), PRIORITY )
 
-#define vlc_thread_join( P_THIS )                                           \
-    vlc_thread_join( VLC_OBJECT(P_THIS) )
-
 #ifdef __cplusplus
 /**
  * Helper C++ class to lock a mutex.
index 95f9f888f1777eb777d4492637d1b4beecdff5f9..9be3e2dd304eb90a8efbfeb0a897a7a1114228d4 100644 (file)
@@ -49,6 +49,12 @@ void system_End       ( libvlc_int_t * );
 int vlc_clone_detach (vlc_thread_t *, void *(*)(void *), void *, int);
 
 /* Hopefully, no need to export this. There is a new thread API instead. */
+int vlc_thread_create( vlc_object_t *, void * ( * ) ( vlc_object_t * ), int ) VLC_USED VLC_DEPRECATED;
+void vlc_thread_join( vlc_object_t * ) VLC_DEPRECATED;
+#define vlc_thread_create( P_THIS, FUNC, PRIORITY ) \
+    vlc_thread_create( VLC_OBJECT(P_THIS), FUNC, PRIORITY )
+#define vlc_thread_join( P_THIS )                                           \
+    vlc_thread_join( VLC_OBJECT(P_THIS) )
 void vlc_thread_cancel (vlc_object_t *);
 int vlc_object_waitpipe (vlc_object_t *obj);
 
index b53b0a08212da77feef8d81d9e1b0b1b3dc3fc0d..4d5b78385b630576057d7c6fc3974f92f44be781 100644 (file)
@@ -608,8 +608,6 @@ vlc_sd_Start
 vlc_sd_Stop
 vlc_tdestroy
 vlc_testcancel
-vlc_thread_create
-vlc_thread_join
 vlc_thread_set_priority
 vlc_threadvar_create
 vlc_threadvar_delete