ilya-biryukov marked 3 inline comments as done.
ilya-biryukov added a comment.

Addressed the locking comments. Locking inside the request handlers looks much 
nicer indeed.



================
Comment at: clangd/ASTManager.cpp:203
+  // TODO(ibiryukov): at this point DocDatasLock can be unlocked in 
asynchronous
+  // mode
 
----------------
krasimir wrote:
> Why not make the locking explicit here and don't require `handleRequest` and 
> `parseFileAndPublishDiagnostics` to be called under a lock?
Good point, my initial attempt was aimed at avoiding locking when 
RunSynchronously is true. But that's not a very useful constraint.


https://reviews.llvm.org/D31746



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to