[ovs-dev] [PATCH 3/5] timeval: Add time-warp sequence number.

Ben Pfaff blp at nicira.com
Tue Oct 1 23:27:00 UTC 2013


On Tue, Oct 01, 2013 at 01:36:13PM -0700, Alex Wang wrote:
> This commit adds an extern sequence number 'timewarp_seq' in timeval,
> so that threads other than main thread can wait on this sequence number
> and be waken up when time is warped.
> 
> Signed-off-by: Alex Wang <alexw at nicira.com>

Could timeval export a function e.g. "timewarp_wait()" rather than a
variable here?

It would be even better if threads didn't have to explicitly wait on
this.  Maybe timeval or the poll loop should automatically wake up all
threads when time warping happens.



More information about the dev mailing list