Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
79014d08
Commit
79014d08
authored
Jul 08, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
darwin: remove write-only real-time parameters
parent
58c0ece0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
19 deletions
+2
-19
src/darwin/thread.c
src/darwin/thread.c
+1
-16
src/libvlc-module.c
src/libvlc-module.c
+1
-3
No files found.
src/darwin/thread.c
View file @
79014d08
...
@@ -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
,
...
...
src/libvlc-module.c
View file @
79014d08
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment