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

Method Push

cpp/src/arrow/flight/sql/odbc/odbc_impl/blocking_queue.h:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 }
71
72 void Push(T item) {
73 std::unique_lock<std::mutex> unique_lock(mtx_);
74 if (!WaitUntilCanPushOrClosed(unique_lock)) return;
75
76 buffer_[right_] = std::move(item);
77
78 right_ = (right_ + 1) % capacity_;
79 buffer_size_++;
80
81 not_empty_.notify_one();
82 }
83
84 bool Pop(T* result) {
85 std::unique_lock<std::mutex> unique_lock(mtx_);

Callers 5

DoDiscoveryMethod · 0.45
FinishMethod · 0.45
RunMethod · 0.45
FullListAsyncMethod · 0.45
GetFileInfoGeneratorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected