Lines Matching refs:Requests
484 std::deque<Request> Requests; /* GUARDED_BY(Mutex) */ member in clang::clangd::__anon5c4233ba0311::ASTWorker
596 assert(Requests.empty() && !CurrentRequest && in ~ASTWorker()
978 for (auto &R : llvm::reverse(Requests)) { in startTask()
994 Requests.push_back({std::move(Task), std::string(Name), steady_clock::now(), in startTask()
1011 if (Requests.empty()) in run()
1020 if (!Requests.empty()) { in run()
1021 Ctx.emplace(Requests.front().Ctx.clone()); in run()
1023 SPAN_ATTACH(*Tracer, "next_request", Requests.front().Name); in run()
1027 Status.ASTActivity.Name = Requests.front().Name; in run()
1044 CurrentRequest = std::move(Requests.front()); in run()
1045 Requests.pop_front(); in run()
1074 IsEmpty = Requests.empty() && PreambleRequests.empty(); in run()
1090 if (Requests.empty()) in scheduleLocked()
1093 for (auto I = Requests.begin(), E = Requests.end(); I != E; ++I) { in scheduleLocked()
1103 Requests.erase(I); in scheduleLocked()
1104 Requests.push_front(std::move(R)); in scheduleLocked()
1113 vlog("ASTWorker skipping {0} for {1}", Requests.front().Name, FileName); in scheduleLocked()
1114 Requests.pop_front(); in scheduleLocked()
1116 assert(!Requests.empty() && "skipped the whole queue"); in scheduleLocked()
1121 for (const auto &R : Requests) in scheduleLocked()
1125 Deadline D(Requests.front().AddTime + UpdateDebounce.compute(RebuildTimes)); in scheduleLocked()
1131 assert(!Requests.empty()); in shouldSkipHeadLocked()
1132 auto Next = Requests.begin(); in shouldSkipHeadLocked()
1139 if (Next == Requests.end() || !Next->UpdateType) in shouldSkipHeadLocked()
1149 for (; Next != Requests.end(); ++Next) in shouldSkipHeadLocked()
1162 return PreambleRequests.empty() && Requests.empty() && !CurrentRequest; in blockUntilIdle()
1172 assert(Requests.empty() && in blockUntilIdle()