On 11 February 2015 23:42, quoth Frank Heckenbach: > > In master/master.c's ec_master_init (line 213 in my patched version; > > line > > 211 in stable-1.5) there's the following line: > > > > ec_master_set_send_interval(master, 1000000 / HZ); > > > > According to the definition further down and the docs, that second > > parameter is supposed to be the time between master application cycles > > in microseconds, which is used to calculate a few queue sizes and also > > to control the master thread sleep time if EC_USE_HRTIMER is defined > > (via configure --enable-hrtimer). > > > > Doesn't the use of HZ above mean that this is actually calculating > > "how many seconds is 1000000 jiffies" > > Which is the same as "how many microseconds is 1 jiffy". So sleeping for this > many microseconds is as close as possible to the non-hrtimer code which > sleeps for 1 jiffy.
Thanks, that makes more sense now. _______________________________________________ etherlab-dev mailing list etherlab-dev@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-dev