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)
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,
......
......@@ -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
......
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