MCPcopy Create free account
hub / github.com/apache/impala / DrainTaskQueue

Method DrainTaskQueue

be/src/kudu/rpc/reactor.cc:956–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954}
955
956bool Reactor::DrainTaskQueue(boost::intrusive::list<ReactorTask>* tasks) { // NOLINT(*)
957 std::lock_guard<LockType> l(lock_);
958 if (closing_) {
959 return false;
960 }
961 tasks->swap(pending_tasks_);
962 return true;
963}
964
965} // namespace rpc
966} // namespace kudu

Callers 1

AsyncHandlerMethod · 0.80

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected