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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user