[vlc-commits] Unexported vlc_thread_set_priority().

Laurent Aimar git at videolan.org
Mon May 23 18:07:30 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon May 23 18:06:14 2011 +0200| [3434ee9c9432fd801a41e2ee3112b32b6d99d2c5] | committer: Laurent Aimar

Unexported vlc_thread_set_priority().

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

 include/vlc_threads.h |    5 -----
 src/libvlc.h          |    4 ++++
 src/libvlccore.sym    |    1 -
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/include/vlc_threads.h b/include/vlc_threads.h
index 808b54e..6bf0fb5 100644
--- a/include/vlc_threads.h
+++ b/include/vlc_threads.h
@@ -195,8 +195,6 @@ 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_set_priority( vlc_object_t *, int ) VLC_DEPRECATED;
-
 VLC_API int vlc_clone(vlc_thread_t *, void * (*) (void *), void *, int) VLC_USED;
 VLC_API void vlc_cancel(vlc_thread_t);
 VLC_API void vlc_join(vlc_thread_t, void **);
@@ -392,9 +390,6 @@ static inline void barrier (void)
 #endif
 }
 
-#define vlc_thread_set_priority( P_THIS, PRIORITY )                         \
-    vlc_thread_set_priority( VLC_OBJECT(P_THIS), PRIORITY )
-
 #ifdef __cplusplus
 /**
  * Helper C++ class to lock a mutex.
diff --git a/src/libvlc.h b/src/libvlc.h
index 9be3e2d..b1d2aea 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -51,10 +51,14 @@ 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;
+int vlc_thread_set_priority( vlc_object_t *, int ) 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) )
+#define vlc_thread_set_priority( P_THIS, PRIORITY )                         \
+    vlc_thread_set_priority( VLC_OBJECT(P_THIS), PRIORITY )
+
 void vlc_thread_cancel (vlc_object_t *);
 int vlc_object_waitpipe (vlc_object_t *obj);
 
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 4d5b783..87d96da 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -608,7 +608,6 @@ vlc_sd_Start
 vlc_sd_Stop
 vlc_tdestroy
 vlc_testcancel
-vlc_thread_set_priority
 vlc_threadvar_create
 vlc_threadvar_delete
 vlc_threadvar_get



More information about the vlc-commits mailing list