MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / clear

Method clear

benchmarks/dlib/queue/queue_kernel_2.h:240–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 typename mem_manager
239 >
240 void queue_kernel_2<T,block_size,mem_manager>::
241 clear (
242 )
243 {
244 if (queue_size > 0)
245 {
246 delete_nodes(out,in);
247 queue_size = 0;
248 }
249
250 // put the enumerator at the start
251 reset();
252 }
253
254// ----------------------------------------------------------------------------------------
255

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected