diff options
author | Alex Wang <alexw@nicira.com> | 2013-10-09 04:30:36 +0000 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2013-10-08 17:57:58 -0700 |
commit | 53d98a1e9c8c2e5ea2bde30d3461c1d5bfbbfa97 (patch) | |
tree | 556db498301c653bf190f7ab81998373a80553c1 /lib/poll-loop.c | |
parent | 47aaca882310cc40eff962652529b1bfcea6b431 (diff) | |
download | openvswitch-53d98a1e9c8c2e5ea2bde30d3461c1d5bfbbfa97.tar.gz |
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>
Diffstat (limited to 'lib/poll-loop.c')
-rw-r--r-- | lib/poll-loop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/poll-loop.c b/lib/poll-loop.c index 4eb118701..5e3618bb9 100644 --- a/lib/poll-loop.c +++ b/lib/poll-loop.c @@ -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) { |