[vlc-commits] darwin: remove write-only real-time parameters
Rémi Denis-Courmont
git at videolan.org
Wed Jul 8 20:16:31 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 8 21:05:21 2015 +0300| [79014d08dd6fc702127a6759295fcd37c5d2eaf9] | committer: Rémi Denis-Courmont
darwin: remove write-only real-time parameters
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=79014d08dd6fc702127a6759295fcd37c5d2eaf9
---
src/darwin/thread.c | 17 +----------------
src/libvlc-module.c | 4 +---
2 files changed, 2 insertions(+), 19 deletions(-)
diff --git a/src/darwin/thread.c b/src/darwin/thread.c
index 6fa9ec0..ebb9a51 100644
--- a/src/darwin/thread.c
+++ b/src/darwin/thread.c
@@ -404,24 +404,9 @@ void *vlc_threadvar_get (vlc_threadvar_t key)
return pthread_getspecific (key);
}
-static bool rt_priorities = false;
-static int rt_offset;
-
void vlc_threads_setup (libvlc_int_t *p_libvlc)
{
- static vlc_mutex_t lock = VLC_STATIC_MUTEX;
- static bool initialized = false;
-
- vlc_mutex_lock (&lock);
- /* Initializes real-time priorities before any thread is created,
- * just once per process. */
- if (!initialized)
- {
- rt_offset = var_InheritInteger (p_libvlc, "rt-offset");
- rt_priorities = true;
- initialized = true;
- }
- vlc_mutex_unlock (&lock);
+ (void) p_libvlc;
}
static int vlc_clone_attr (vlc_thread_t *th, pthread_attr_t *attr,
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 65a9269..d45aa33 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1945,11 +1945,9 @@ vlc_module_begin ()
set_section( N_("Performance options"), NULL )
-#ifdef LIBVLC_USE_PTHREAD
-# ifndef __APPLE__
+#if defined (LIBVLC_USE_PTHREAD) && !defined (__APPLE__)
add_bool( "rt-priority", false, RT_PRIORITY_TEXT,
RT_PRIORITY_LONGTEXT, true )
-# endif
add_integer( "rt-offset", 0, RT_OFFSET_TEXT,
RT_OFFSET_LONGTEXT, true )
#endif
More information about the vlc-commits
mailing list