Skip to content

Commit

Permalink
darwin: remove write-only real-time parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Jul 8, 2015
1 parent 58c0ece commit 79014d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
17 changes: 1 addition & 16 deletions src/darwin/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions src/libvlc-module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79014d0

Please sign in to comment.