Your current code has 2 1/2 memory barriers. That's the same as my 2 counter proposal.
As long as we are mucking in this area, should we take the opportunity and do a big jump and convert to a new way of doing things? Support old and new SHM until we can drop old. Use 2 counters, read only for readers. Include a version # Avoid time_t in the layout. Use uint64_t for seconds. What else? -- These are my opinions. I hate spam. _______________________________________________ devel mailing list devel@ntpsec.org https://lists.ntpsec.org/mailman/listinfo/devel