2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

timeval: Wake up all threads when time is warped.

This commit makes the main thread wake up all other threads when time is
warped.

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
Alex Wang
2013-10-09 04:30:36 +00:00
committed by Ethan Jackson
parent 47aaca8823
commit 53d98a1e9c
3 changed files with 28 additions and 1 deletions

View File

@@ -226,6 +226,7 @@ poll_block(void)
COVERAGE_INC(poll_zero_timeout);
}
timewarp_wait();
retval = time_poll(loop->pollfds, loop->n_waiters,
loop->timeout_when, &elapsed);
if (retval < 0) {