Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f5e9d0f6
Commit
f5e9d0f6
authored
Jun 10, 2015
by
KO Myung-Hun
Committed by
Rémi Denis-Courmont
Jun 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os2: thread: use gettimeofday() instead of time()
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
f8f9b3f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/os2/thread.c
src/os2/thread.c
+8
-2
No files found.
src/os2/thread.c
View file @
f5e9d0f6
...
@@ -343,9 +343,15 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex,
...
@@ -343,9 +343,15 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex,
mtime_t
total
;
mtime_t
total
;
switch
(
p_condvar
->
clock
)
switch
(
p_condvar
->
clock
)
{
{
case
CLOCK_REALTIME
:
/* FIXME? sub-second precision */
case
CLOCK_REALTIME
:
total
=
CLOCK_FREQ
*
time
(
NULL
);
{
struct
timeval
tv
;
gettimeofday
(
&
tv
,
NULL
);
total
=
CLOCK_FREQ
*
tv
.
tv_sec
+
CLOCK_FREQ
*
tv
.
tv_usec
/
1000000L
;
break
;
break
;
}
default:
default:
assert
(
p_condvar
->
clock
==
CLOCK_MONOTONIC
);
assert
(
p_condvar
->
clock
==
CLOCK_MONOTONIC
);
total
=
mdate
();
total
=
mdate
();
...
...
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