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
218bc1f9
Commit
218bc1f9
authored
Sep 05, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warn about ticks at compile-time
parent
9a5e5236
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
include/vlc_mtime.h
include/vlc_mtime.h
+13
-0
src/misc/mtime.c
src/misc/mtime.c
+1
-0
No files found.
include/vlc_mtime.h
View file @
218bc1f9
...
...
@@ -68,6 +68,19 @@ VLC_EXPORT( void, mwait, ( mtime_t date ) );
VLC_EXPORT
(
void
,
msleep
,
(
mtime_t
delay
)
);
VLC_EXPORT
(
char
*
,
secstotimestr
,
(
char
*
psz_buffer
,
int
secs
)
);
#ifdef __GNUC__
static
__attribute__
((
unused
))
__attribute__
((
noinline
))
__attribute__
((
warning
(
"use proper event handling instead"
)))
void
bad_msleep
(
mtime_t
delay
)
{
msleep
(
delay
);
}
# define msleep( d ) \
((__builtin_constant_p(d) && (d < 29000000)) ? bad_msleep(d) : msleep(d))
#endif
/*****************************************************************************
* date_t: date incrementation without long-term rounding errors
*****************************************************************************/
...
...
src/misc/mtime.c
View file @
218bc1f9
...
...
@@ -363,6 +363,7 @@ void mwait( mtime_t date )
#include "libvlc.h"
/* vlc_backtrace() */
#undef msleep
/**
* Portable usleep(). Cancellation point.
...
...
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