2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

poll-loop: New function poll_timer_wait_until().

Many of poll_timer_wait()'s callers actually want to wait until a specific
time, so it's convenient for them to offer a function that does this.
This commit is contained in:
Ben Pfaff
2010-05-12 12:53:07 -07:00
parent 8bf4bbe390
commit 7cf8b2660f
15 changed files with 40 additions and 41 deletions

View File

@@ -293,6 +293,6 @@ mac_learning_wait(struct mac_learning *ml)
{
if (!list_is_empty(&ml->lrus)) {
struct mac_entry *e = mac_entry_from_lru_node(ml->lrus.next);
poll_timer_wait((e->expires - time_now()) * 1000);
poll_timer_wait_until(e->expires * 1000LL);
}
}