Summary:
Our tests stash callbacks into request context and rely on it being
invoked before threads going idle.
Reviewers: sammccall
Subscribers: ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D77671
NextReq.reset();
}
- WithContext Guard(std::move(CurrentReq->Ctx));
- // Build the preamble and let the waiters know about it.
- build(std::move(*CurrentReq));
+ {
+ WithContext Guard(std::move(CurrentReq->Ctx));
+ // Build the preamble and let the waiters know about it.
+ build(std::move(*CurrentReq));
+ }
bool IsEmpty = false;
{
std::lock_guard<std::mutex> Lock(Mutex);