MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / iterator

Function iterator

src/include/unordered_map_concurrent.h:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers 3

beginMethod · 0.70
endMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected