MCPcopy Create free account
hub / github.com/apache/arrow / WaitAndPop

Method WaitAndPop

cpp/src/arrow/acero/concurrent_queue_internal.h:36–40  ·  view source on GitHub ↗

Pops the last item from the queue but waits if the queue is empty until new items are pushed.

Source from the content-addressed store, hash-verified

34 // Pops the last item from the queue but waits if the queue is empty until new items are
35 // pushed.
36 T WaitAndPop() {
37 std::unique_lock<std::mutex> lock(mutex_);
38 WaitUntilNonEmpty(lock);
39 return PopUnlocked();
40 }
41
42 // Pops the last item from the queue, or returns a nullopt if empty
43 std::optional<T> TryPop() {

Callers 3

EmitBatchesMethod · 0.45
ProcessThreadMethod · 0.45
ConcurrentQueueBasicTestFunction · 0.45

Calls

no outgoing calls

Tested by 1

ConcurrentQueueBasicTestFunction · 0.36