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

Method Close

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

Source from the content-addressed store, hash-verified

96 }
97
98 void Close() {
99 std::unique_lock<std::mutex> unique_lock(mtx_);
100
101 if (closed_) return;
102 closed_ = true;
103 not_empty_.notify_all();
104 not_full_.notify_all();
105
106 unique_lock.unlock();
107
108 for (auto& item : threads_) {
109 item.join();
110 }
111 }
112
113 private:
114 bool WaitUntilCanPushOrClosed(std::unique_lock<std::mutex>& unique_lock) {

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected