Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c4fde1e5
Commit
c4fde1e5
authored
Dec 14, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/threads.c: implemented vlc_thread_set_priority() for win32.
parent
be0f3d85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/misc/threads.c
src/misc/threads.c
+12
-3
No files found.
src/misc/threads.c
View file @
c4fde1e5
...
...
@@ -2,7 +2,7 @@
* threads.c : threads implementation for the VideoLAN client
*****************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 VideoLAN
* $Id: threads.c,v 1.2
8 2002/12/08 00:41:06 massiot
Exp $
* $Id: threads.c,v 1.2
9 2002/12/14 19:19:08 gbazin
Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -679,7 +679,11 @@ int __vlc_thread_set_priority( vlc_object_t *p_this, char * psz_file,
int
i_line
,
int
i_priority
)
{
#if defined( WIN32 ) || defined( UNDER_CE )
/* FIXME: implement it under Win32 ! */
if
(
!
SetThreadPriority
(
GetCurrentThread
(),
i_priority
)
)
{
msg_Warn
(
p_this
,
"couldn't set a faster priority"
);
return
1
;
}
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
if
(
i_priority
)
...
...
@@ -691,10 +695,15 @@ int __vlc_thread_set_priority( vlc_object_t *p_this, char * psz_file,
{
msg_Warn
(
p_this
,
"couldn't go to real-time priority (%s:%d)"
,
psz_file
,
i_line
);
i_priority
=
0
;
return
1
;
}
}
#else
return
1
;
#endif
return
0
;
}
/*****************************************************************************
...
...
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