Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
5730eaaa
Commit
5730eaaa
authored
Oct 16, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* What was i smoking when i did this change?
parent
c37297d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
src/misc/threads.c
src/misc/threads.c
+6
-10
No files found.
src/misc/threads.c
View file @
5730eaaa
...
...
@@ -571,18 +571,15 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
i_ret
=
pthread_create
(
&
p_this
->
thread_id
,
NULL
,
func
,
p_data
);
#if
!defined(SYS_BEOS) && defined(PTHREAD_COND_T_IN_PTHREAD_H)
i
_ret
=
config_GetInt
(
p_this
,
"rt-priority"
);
#if
ndef SYS_DARWIN
i
f
(
config_GetInt
(
p_this
,
"rt-priority"
)
)
#endif
if
(
i_ret
)
{
int
i_error
,
i_policy
;
struct
sched_param
param
;
memset
(
&
param
,
0
,
sizeof
(
struct
sched_param
)
);
#if !defined(SYS_BEOS) && defined(PTHREAD_COND_T_IN_PTHREAD_H)
i_priority
+=
config_GetInt
(
p_this
,
"rt-offset"
);
#endif
if
(
i_priority
<=
0
)
{
param
.
sched_priority
=
(
-
1
)
*
i_priority
;
...
...
@@ -601,10 +598,12 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
i_priority
=
0
;
}
}
#ifndef SYS_DARWIN
else
{
i_priority
=
0
;
}
#endif
#elif defined( HAVE_CTHREADS_H )
p_this
->
thread_id
=
cthread_fork
(
(
cthread_fn_t
)
func
,
(
any_t
)
p_data
);
...
...
@@ -650,8 +649,6 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
int
__vlc_thread_set_priority
(
vlc_object_t
*
p_this
,
char
*
psz_file
,
int
i_line
,
int
i_priority
)
{
int
i_ret
;
#if defined( PTH_INIT_IN_PTH_H ) || defined( ST_INIT_IN_ST_H )
#elif defined( WIN32 ) || defined( UNDER_CE )
if
(
!
SetThreadPriority
(
GetCurrentThread
(),
i_priority
)
)
...
...
@@ -661,9 +658,8 @@ int __vlc_thread_set_priority( vlc_object_t *p_this, char * psz_file,
}
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
#if !defined(SYS_BEOS) && defined(PTHREAD_COND_T_IN_PTHREAD_H)
i_ret
=
config_GetInt
(
p_this
,
"rt-priority"
);
if
(
i_ret
)
#ifndef SYS_DARWIN
if
(
config_GetInt
(
p_this
,
"rt-priority"
)
)
#endif
{
int
i_error
,
i_policy
;
...
...
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