Emeric Brun
6e0128630b
BUG/MAJOR: threads/freq_ctr: fix lock on freq counters.
...
The wrong bit was set to keep the lock on freq counter update. And the read
functions were re-worked to use volatile.
Moreover, when a freq counter is updated, it is now rotated only if the current
counter is in the past (now.tv_sec > ctr->curr_sec). It is important with
threads because the current time (now) is thread-local. So, rounded to the
second, the time may vary by more or less 1 second. So a freq counter rotated by
one thread may be see 1 second in the future. In this case, it is updated but
not rotated.
2017-10-31 13:58:33 +01:00
..
2017-10-31 11:36:12 +01:00
2017-10-31 11:36:12 +01:00
2017-10-31 13:58:31 +01:00
2016-03-15 22:11:52 +01:00
2014-03-17 18:06:07 +01:00
2017-09-05 15:23:16 +02:00
2017-10-31 13:58:31 +01:00
2017-10-31 13:58:33 +01:00
2016-11-24 16:59:27 +01:00
2016-02-09 14:53:15 +01:00
2017-10-31 13:58:30 +01:00
2017-10-31 11:36:12 +01:00
2017-10-31 13:58:30 +01:00
2016-12-21 21:30:54 +01:00
2016-02-09 14:53:15 +01:00
2017-10-31 13:58:33 +01:00
2015-04-06 11:23:56 +02:00
2017-10-31 08:43:29 +01:00
2017-07-17 21:11:30 +02:00
2016-11-24 21:35:10 +01:00
2015-06-17 20:18:54 +02:00
2009-10-09 07:17:58 +02:00
2012-02-21 22:27:27 +01:00
2009-10-01 11:19:37 +02:00
2009-10-01 11:19:37 +02:00
2017-10-31 13:58:31 +01:00
2017-09-15 11:49:52 +02:00
2017-10-31 13:58:30 +01:00
2015-08-20 17:13:46 +02:00
2017-08-09 16:32:49 +02:00
2017-10-24 19:57:16 +02:00
2017-07-04 10:45:53 +02:00
2015-04-06 11:23:56 +02:00
2015-05-29 15:50:33 +02:00
2009-01-25 13:49:53 +01:00
2009-06-10 12:23:32 +02:00
2017-10-31 13:58:31 +01:00
2017-09-15 11:49:52 +02:00
2016-04-14 11:18:22 +02:00
2015-02-28 23:12:31 +01:00
2017-10-31 13:58:30 +01:00
2017-09-05 15:23:16 +02:00
2016-12-22 23:26:38 +01:00
2017-07-24 17:16:00 +02:00
2017-10-31 13:58:31 +01:00
2017-10-31 13:58:31 +01:00
2017-10-31 03:49:44 +01:00
2017-10-31 13:58:30 +01:00
2017-08-22 11:27:20 +02:00
2017-10-31 13:58:32 +01:00
2016-11-26 15:58:37 +01:00
2017-10-31 13:58:31 +01:00
2017-10-31 13:58:31 +01:00
2017-10-31 13:58:31 +01:00
2017-10-31 13:58:32 +01:00
2017-10-31 11:36:12 +01:00
2006-06-29 18:54:54 +02:00
2016-11-09 22:57:01 +01:00