[PATCH] D54829: [clangd] Cleanup: make diagnostics callbacks from TUScheduler non-racy

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 22 02:39:53 PST 2018


ilya-biryukov added inline comments.


================
Comment at: clangd/TUScheduler.cpp:241
   ParseInputs FileInputs;
+  /// Used to indicate to the tasks running inside the worker queue that AST is
+  /// being destroyed and the AST queue is being drained.
----------------
Note to myself: should reuse `Done` instead by making turning it into `atomic<bool>`


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D54829





More information about the cfe-commits mailing list