1. 4
  1.  

  2. 2

    Why is the counter member atomic? Looks like all accesses to it are under the r mutex, no?

    1. 1

      Why is the counter member atomic? Looks like all accesses to it are under the r mutex, no?

      Good catch. I initially tried to avoid the r mutex and do things atomically, but couldn’t figure it out. Forgot to change the type of counter.

    2. 1