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

Method TryPop

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

Pops the last item from the queue, or returns a nullopt if empty

Source from the content-addressed store, hash-verified

41
42 // Pops the last item from the queue, or returns a nullopt if empty
43 std::optional<T> TryPop() {
44 std::unique_lock<std::mutex> lock(mutex_);
45 return TryPopUnlocked();
46 }
47
48 // Pushes an item to the queue
49 void Push(const T& item) {

Callers 4

AdvanceMethod · 0.45
AdvanceMethod · 0.45
ConcurrentQueueBasicTestFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 2

ConcurrentQueueBasicTestFunction · 0.36
TESTFunction · 0.36