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
020fbe57
Commit
020fbe57
authored
Nov 24, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix one shot timers
parent
66c47c31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/misc/pthread.c
src/misc/pthread.c
+6
-0
No files found.
src/misc/pthread.c
View file @
020fbe57
...
@@ -833,6 +833,12 @@ static void *vlc_timer_thread (void *data)
...
@@ -833,6 +833,12 @@ static void *vlc_timer_thread (void *data)
unsigned
misses
;
unsigned
misses
;
vlc_mutex_lock
(
&
timer
->
lock
);
vlc_mutex_lock
(
&
timer
->
lock
);
if
(
timer
->
interval
==
0
)
{
timer
->
value
=
0
;
/* disarm */
continue
;
}
misses
=
(
now
-
timer
->
value
)
/
timer
->
interval
;
misses
=
(
now
-
timer
->
value
)
/
timer
->
interval
;
timer
->
value
+=
timer
->
interval
;
timer
->
value
+=
timer
->
interval
;
/* Try to compensate for one miss (mwait() will return immediately)
/* Try to compensate for one miss (mwait() will return immediately)
...
...
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