projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0b595
)
add another assert to catch sleep time miscalculations easier
author
Lennart Poettering
<lennart@poettering.net>
Sat, 17 May 2008 09:59:34 +0000
(09:59 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 17 May 2008 09:59:34 +0000
(09:59 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2461
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/rtpoll.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/rtpoll.c
b/src/pulsecore/rtpoll.c
index
64fa42a
..
23a5b17
100644
(file)
--- a/
src/pulsecore/rtpoll.c
+++ b/
src/pulsecore/rtpoll.c
@@
-514,6
+514,9
@@
void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, pa_usec_t usec) {
void pa_rtpoll_set_timer_relative(pa_rtpoll *p, pa_usec_t usec) {
pa_assert(p);
+ /* Scheduling a timeout for more than an hour is very very suspicious */
+ pa_assert(usec <= PA_USEC_PER_SEC*60ULL*60ULL);
+
pa_rtclock_get(&p->next_elapse);
pa_timeval_add(&p->next_elapse, usec);
p->timer_enabled = TRUE;