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

Function clear

extern/libcds/cds/container/fcqueue.h:239–250  ·  view source on GitHub ↗

Clears the queue

Source from the content-addressed store, hash-verified

237
238 /// Clears the queue
239 void clear()
240 {
241 auto pRec = m_FlatCombining.acquire_record();
242
243 constexpr_if ( c_bEliminationEnabled )
244 m_FlatCombining.batch_combine( op_clear, pRec, *this );
245 else
246 m_FlatCombining.combine( op_clear, pRec, *this );
247
248 assert( pRec->is_done());
249 m_FlatCombining.release_record( pRec );
250 }
251
252 /// Exclusive access to underlying queue object
253 /**

Callers

nothing calls this directly

Calls 5

assertClass · 0.85
acquire_recordMethod · 0.80
batch_combineMethod · 0.80
release_recordMethod · 0.80
is_doneMethod · 0.45

Tested by

no test coverage detected