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

Function clear

extern/libcds/cds/container/fcstack.h:218–229  ·  view source on GitHub ↗

Clears the stack

Source from the content-addressed store, hash-verified

216
217 /// Clears the stack
218 void clear()
219 {
220 auto pRec = m_FlatCombining.acquire_record();
221
222 constexpr_if ( c_bEliminationEnabled )
223 m_FlatCombining.batch_combine( op_clear, pRec, *this );
224 else
225 m_FlatCombining.combine( op_clear, pRec, *this );
226
227 assert( pRec->is_done());
228 m_FlatCombining.release_record( pRec );
229 }
230
231 /// Exclusive access to underlying stack object
232 /**

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