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
05882af7
Commit
05882af7
authored
Sep 03, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CLOCK_FREQ
parent
df65d657
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/vlc_threads.h
include/vlc_threads.h
+3
-3
No files found.
include/vlc_threads.h
View file @
05882af7
...
@@ -501,8 +501,8 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line,
...
@@ -501,8 +501,8 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line,
mtime_t
deadline
)
mtime_t
deadline
)
{
{
#if defined(LIBVLC_USE_PTHREAD)
#if defined(LIBVLC_USE_PTHREAD)
lldiv_t
d
=
lldiv
(
deadline
,
1000000
);
lldiv_t
d
=
lldiv
(
deadline
,
CLOCK_FREQ
);
struct
timespec
ts
=
{
d
.
quot
,
d
.
rem
*
1000
};
struct
timespec
ts
=
{
d
.
quot
,
d
.
rem
*
(
1000000000
/
CLOCK_FREQ
)
};
int
val
=
pthread_cond_timedwait
(
p_condvar
,
p_mutex
,
&
ts
);
int
val
=
pthread_cond_timedwait
(
p_condvar
,
p_mutex
,
&
ts
);
if
(
val
!=
ETIMEDOUT
)
if
(
val
!=
ETIMEDOUT
)
...
@@ -510,7 +510,7 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line,
...
@@ -510,7 +510,7 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line,
return
val
;
return
val
;
#elif defined( UNDER_CE )
#elif defined( UNDER_CE )
mtime_t
delay_ms
=
(
deadline
-
mdate
())
/
1000
;
mtime_t
delay_ms
=
(
deadline
-
mdate
())
/
(
CLOCK_FREQ
/
1000
)
;
DWORD
result
;
DWORD
result
;
if
(
delay_ms
<
0
)
if
(
delay_ms
<
0
)
delay_ms
=
0
;
delay_ms
=
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