| 106 | /// transfers the lock (if held) to this. Caveat: the copied |
| 107 | /// iterator no longer holds the lock! |
| 108 | iterator (const iterator &src) { |
| 109 | m_umc = src.m_umc; |
| 110 | m_bin = src.m_bin; |
| 111 | m_biniterator = src.m_biniterator; |
| 112 | m_locked = src.m_locked; |
| 113 | // assignment transfers lock ownership |
| 114 | *(const_cast<bool *>(&src.m_locked)) = false; |
| 115 | } |
| 116 | |
| 117 | /// Destroying an unordered_map_concurrent iterator releases any |
| 118 | /// bin locks it held. |
no outgoing calls
no test coverage detected