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
1e8c1d91
Commit
1e8c1d91
authored
Nov 21, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress duplicated msleep() code
parent
edb8e509
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
33 deletions
+2
-33
src/misc/mtime.c
src/misc/mtime.c
+2
-33
No files found.
src/misc/mtime.c
View file @
1e8c1d91
...
...
@@ -262,39 +262,8 @@ void mwait( mtime_t date )
-
(
mtime_t
)
tv_date
.
tv_usec
-
10000
;
/* Linux/i386 has a granularity of 10 ms. It's better to be in advance
* than to be late. */
if
(
delay
<=
0
)
/* wished date is now or already passed */
{
return
;
}
# if defined( PTH_INIT_IN_PTH_H )
pth_usleep
(
delay
);
# elif defined( ST_INIT_IN_ST_H )
st_usleep
(
delay
);
# else
# if defined( HAVE_NANOSLEEP )
{
struct
timespec
ts_delay
;
ts_delay
.
tv_sec
=
delay
/
1000000
;
ts_delay
.
tv_nsec
=
(
delay
%
1000000
)
*
1000
;
nanosleep
(
&
ts_delay
,
NULL
);
}
# else
tv_date
.
tv_sec
=
delay
/
1000000
;
tv_date
.
tv_usec
=
delay
%
1000000
;
/* see msleep() about select() errors */
select
(
0
,
NULL
,
NULL
,
NULL
,
&
tv_date
);
# endif
# endif
if
(
delay
>
0
)
msleep
(
delay
);
#endif
}
...
...
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