MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / lock

Method lock

extern/libcds/cds/sync/lock_array.h:215–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213 */
214 template <typename Q>
215 size_t lock( Q const& hint )
216 {
217 size_t nCell = m_SelectCellPolicy( hint, size());
218 assert( nCell < size());
219 m_arrLocks[nCell].lock();
220 return nCell;
221 }
222
223 /// Try lock a lock at cell \p hint
224 /**

Callers 3

lock_allMethod · 0.45
unique_lockMethod · 0.45
monitor_scoped_lockMethod · 0.45

Calls 2

assertClass · 0.85
sizeFunction · 0.50

Tested by

no test coverage detected