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

Function lock

src/include/unordered_map_concurrent.h:195–200  ·  view source on GitHub ↗

Lock the bin we point to, if not already locked.

Source from the content-addressed store, hash-verified

193
194 /// Lock the bin we point to, if not already locked.
195 void lock () {
196 if (m_bin >= 0 && !m_locked) {
197 m_umc->m_bins[m_bin].lock();
198 m_locked = true;
199 }
200 }
201 /// Unlock the bin we point to, if locked.
202 void unlock () {
203 if (m_bin >= 0 && m_locked) {

Callers 3

lockMethod · 0.85
rebinFunction · 0.85
thread.hFile · 0.85

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected