junction icon indicating copy to clipboard operation
junction copied to clipboard

Currently using of iterator and assign.

Open justphilipp opened this issue 3 years ago • 0 comments

While I am applying get() and assign() operations to LinearMap concurrently, deadlock always occurs with 4 thread. Then I checked readme, the Rules and Behavior said that

  • All of a Junction map's member functions, together with its Mutator member functions, are atomic with respect to each other, so you can safely call them from any thread without mutual exclusion.
  • In the current version, you must not assign while concurrently using an Iterator.

Above two entries seem contradict each other.

justphilipp avatar Nov 01 '22 09:11 justphilipp