Commit 79014d08 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

darwin: remove write-only real-time parameters

parent 58c0ece0
...@@ -404,24 +404,9 @@ void *vlc_threadvar_get (vlc_threadvar_t key) ...@@ -404,24 +404,9 @@ void *vlc_threadvar_get (vlc_threadvar_t key)
return pthread_getspecific (key); return pthread_getspecific (key);
} }
static bool rt_priorities = false;
static int rt_offset;
void vlc_threads_setup (libvlc_int_t *p_libvlc) void vlc_threads_setup (libvlc_int_t *p_libvlc)
{ {
static vlc_mutex_t lock = VLC_STATIC_MUTEX; (void) p_libvlc;
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);
} }
static int vlc_clone_attr (vlc_thread_t *th, pthread_attr_t *attr, static int vlc_clone_attr (vlc_thread_t *th, pthread_attr_t *attr,
......
...@@ -1945,11 +1945,9 @@ vlc_module_begin () ...@@ -1945,11 +1945,9 @@ vlc_module_begin ()
set_section( N_("Performance options"), NULL ) set_section( N_("Performance options"), NULL )
#ifdef LIBVLC_USE_PTHREAD #if defined (LIBVLC_USE_PTHREAD) && !defined (__APPLE__)
# ifndef __APPLE__
add_bool( "rt-priority", false, RT_PRIORITY_TEXT, add_bool( "rt-priority", false, RT_PRIORITY_TEXT,
RT_PRIORITY_LONGTEXT, true ) RT_PRIORITY_LONGTEXT, true )
# endif
add_integer( "rt-offset", 0, RT_OFFSET_TEXT, add_integer( "rt-offset", 0, RT_OFFSET_TEXT,
RT_OFFSET_LONGTEXT, true ) RT_OFFSET_LONGTEXT, true )
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment