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
691e51b2
Commit
691e51b2
authored
Sep 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning
parent
859593f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/misc/mtime.c
src/misc/mtime.c
+4
-2
No files found.
src/misc/mtime.c
View file @
691e51b2
...
...
@@ -324,7 +324,8 @@ mtime_t mdate( void )
i_previous_time
=
res
;
LeaveCriticalSection
(
&
date_lock
);
}
#elif USE_APPLE_MACH
/* The version that should be used, if it was cancelable */
#elif defined(USE_APPLE_MACH)
/* The version that should be used, if it was cancelable */
pthread_once
(
&
mtime_timebase_info_once
,
mtime_init_timebase
);
uint64_t
mach_time
=
date
*
1000
*
mtime_timebase_info
.
denom
/
mtime_timebase_info
.
numer
;
mach_wait_until
(
mach_time
);
...
...
@@ -425,7 +426,8 @@ void msleep( mtime_t delay )
while
(
nanosleep
(
&
ts_delay
,
&
ts_delay
)
&&
(
errno
==
EINTR
)
);
#elif USE_APPLE_MACH
/* The version that should be used, if it was cancelable */
#elif defined (USE_APPLE_MACH)
/* The version that should be used, if it was cancelable */
pthread_once
(
&
mtime_timebase_info_once
,
mtime_init_timebase
);
uint64_t
mach_time
=
delay
*
1000
*
mtime_timebase_info
.
denom
/
mtime_timebase_info
.
numer
;
mach_wait_until
(
mach_time
+
mach_absolute_time
());
...
...
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