klimek added inline comments.
================ Comment at: clangd/ASTManager.h:67 + /// Setting Done to true will make the worker thread terminate. + std::atomic<bool> Done; +}; ---------------- bkramer wrote: > klimek wrote: > > arphaman wrote: > > > It looks like `Done` is always accessed in a scope where `RequestLock` is > > > locked, so `atomic` doesn't seem needed here. > > Yea, after only having read this header, it looks like we might want to > > pull out a Request as an abstraction. > Wrapped all the guarded variables in a struct. For me that actually makes it worse (sorry): I now read "Request.Done" and think the request is done :) https://reviews.llvm.org/D29886 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits