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

Method cat

benchmarks/dlib/queue/queue_kernel_1.h:300–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298 typename mem_manager
299 >
300 void queue_kernel_1<T,mem_manager>::
301 cat (
302 queue_kernel_1<T,mem_manager>& item
303 )
304 {
305 if (item.queue_size > 0)
306 {
307 if (queue_size > 0)
308 {
309 in->last = item.out;
310 }
311 else
312 {
313 out = item.out;
314 }
315
316
317 in = item.in;
318 queue_size += item.queue_size;
319 item.queue_size = 0;
320 }
321
322 // put the enumerator at the start
323 reset();
324 }
325
326// ----------------------------------------------------------------------------------------
327

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected