Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
bec377a7
Commit
bec377a7
authored
Dec 18, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_POSIX_CLOCK_SELECTION at 0 does not mean it's not supported.
parent
3040dc9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/misc/mtime.c
src/misc/mtime.c
+5
-4
src/misc/threads.c
src/misc/threads.c
+1
-1
No files found.
src/misc/mtime.c
View file @
bec377a7
...
...
@@ -67,16 +67,17 @@ struct timespec
int
nanosleep
(
struct
timespec
*
,
struct
timespec
*
);
#endif
#ifdef HAVE_CLOCK_NANOSLEEP
# if !defined _POSIX_CLOCK_SELECTION || (_POSIX_CLOCK_SELECTION - 0 <= 0)
#if (!defined (_POSIX_CLOCK_SELECTION)) || (_POSIX_CLOCK_SELECTION < 0)
/*
* We cannot use the monotonic clock is clock selection is not available,
* as it would screw vlc_cond_timedwait() completely. Instead, we have to
* stick to the realtime clock. Nevermind it screws everything when ntpdate
* warps the wall clock.
*/
# undef CLOCK_MONOTONIC
# define CLOCK_MONOTONIC CLOCK_REALTIME
# undef CLOCK_MONOTONIC
# define CLOCK_MONOTONIC CLOCK_REALTIME
# ifndef HAVE_CLOCK_NANOSLEEP
# error We have quite a situation here! Fix me if it ever happens.
# endif
#endif
...
...
src/misc/threads.c
View file @
bec377a7
...
...
@@ -484,7 +484,7 @@ int __vlc_cond_init( vlc_object_t *p_this, vlc_cond_t *p_condvar )
if
(
ret
)
return
ret
;
# if defined (_POSIX_CLOCK_SELECTION) && (_POSIX_CLOCK_SELECTION
- 0 >
0)
# if defined (_POSIX_CLOCK_SELECTION) && (_POSIX_CLOCK_SELECTION
>=
0)
/* NOTE: This must be the same clock as the one in mtime.c */
pthread_condattr_setclock
(
&
attr
,
CLOCK_MONOTONIC
);
# 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