mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-01-09 14:11:35 +00:00
LOOP: prevent high cpu utilization on no load.
We we passing "0" timeout into poll(). Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
c516965fbb
commit
fa57927089
@ -112,7 +112,7 @@ void qb_loop_run(struct qb_loop *l)
|
||||
if (l->timer_source) {
|
||||
ms_timeout = qb_loop_timer_msec_duration_to_expire(l->timer_source);
|
||||
} else {
|
||||
ms_timeout = 0;
|
||||
ms_timeout = -1;
|
||||
}
|
||||
}
|
||||
todo += l->fd_source->poll(l->fd_source, ms_timeout);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user