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

Method try_lock

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

Source from the content-addressed store, hash-verified

229 */
230 template <typename Q>
231 size_t try_lock( Q const& hint )
232 {
233 size_t nCell = m_SelectCellPolicy( hint, size());
234 assert( nCell < size());
235 if ( m_arrLocks[nCell].try_lock())
236 return nCell;
237 return c_nUnspecifiedCell;
238 }
239
240 /// Unlock the lock specified by index \p nCell
241 void unlock( size_t nCell )

Callers 8

scoped_cell_trylockMethod · 0.45
try_second_acquireMethod · 0.45
acquire_resizeMethod · 0.45
try_combiningMethod · 0.45
try_batch_combiningMethod · 0.45
combiningMethod · 0.45
batch_combiningMethod · 0.45
wait_for_combiningMethod · 0.45

Calls 2

assertClass · 0.85
sizeFunction · 0.50

Tested by

no test coverage detected