[PATCH] D54746: [clangd] Respect task cancellation in TUScheduler.

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 21 05:19:18 PST 2018


ilya-biryukov accepted this revision.
ilya-biryukov added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: clangd/TUScheduler.cpp:598
+    if (!isCancelled(I->Ctx))
+      continue;
+    // Cancelled reads are moved to the front of the queue and run immediately.
----------------
NIT: maybe also break on non-cancelled reads? Going past this point does not seem particularly useful, as we won't be able to cancel any pending updates before them anyway. And it does not seem like responding for a cancelled task fast is higher priority than delivering the results of that non-cancelled read.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D54746





More information about the cfe-commits mailing list