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
3d87e37e
Commit
3d87e37e
authored
Aug 31, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct requirements for clock_nanosleep()
parent
44cc78b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/posix/thread.c
src/posix/thread.c
+2
-2
No files found.
src/posix/thread.c
View file @
3d87e37e
...
@@ -968,7 +968,7 @@ mtime_t mdate (void)
...
@@ -968,7 +968,7 @@ mtime_t mdate (void)
*/
*/
void
mwait
(
mtime_t
deadline
)
void
mwait
(
mtime_t
deadline
)
{
{
#if (_POSIX_
TIMERS
> 0)
#if (_POSIX_
CLOCK_SELECTION
> 0)
vlc_clock_setup
();
vlc_clock_setup
();
/* If the deadline is already elapsed, or within the clock precision,
/* If the deadline is already elapsed, or within the clock precision,
* do not even bother the system timer. */
* do not even bother the system timer. */
...
@@ -995,8 +995,8 @@ void msleep (mtime_t delay)
...
@@ -995,8 +995,8 @@ void msleep (mtime_t delay)
{
{
struct
timespec
ts
=
mtime_to_ts
(
delay
);
struct
timespec
ts
=
mtime_to_ts
(
delay
);
#if (_POSIX_CLOCK_SELECTION > 0)
vlc_clock_setup
();
vlc_clock_setup
();
#if (_POSIX_TIMERS > 0)
while
(
clock_nanosleep
(
vlc_clock_id
,
0
,
&
ts
,
&
ts
)
==
EINTR
);
while
(
clock_nanosleep
(
vlc_clock_id
,
0
,
&
ts
,
&
ts
)
==
EINTR
);
#else
#else
...
...
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