[PATCH] D80784: [clangd][NFC] Explode ReceivedPreamble into a CV

2020-06-09 Thread Kadir Cetinkaya via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG406ac49fb05e: [clangd][NFC] Explode ReceivedPreamble into a CV (authored by kadircet). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D80784/new/ https://revi

[PATCH] D80784: [clangd][NFC] Explode ReceivedPreamble into a CV

2020-06-09 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 269487. kadircet marked 2 inline comments as done. kadircet added a comment. - Make distinction between PreambleCV and RequestsCV clearer. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D80784/new/ https://revie

[PATCH] D80784: [clangd][NFC] Explode ReceivedPreamble into a CV

2020-06-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/TUScheduler.cpp:661 +std::unique_lock Lock(Mutex); +RequestsCV.wait(Lock, [this] { + // Block until we reiceve a preamble request, unless a preamble already kadircet wrote: > sammc

[PATCH] D80784: [clangd][NFC] Explode ReceivedPreamble into a CV

2020-05-29 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet marked an inline comment as done. kadircet added inline comments. Comment at: clang-tools-extra/clangd/TUScheduler.cpp:661 +std::unique_lock Lock(Mutex); +RequestsCV.wait(Lock, [this] { + // Block until we reiceve a preamble request, unless a preamble alread

[PATCH] D80784: [clangd][NFC] Explode ReceivedPreamble into a CV

2020-05-29 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/TUScheduler.cpp:661 +std::unique_lock Lock(Mutex); +RequestsCV.wait(Lock, [this] { + // Block until we reiceve a preamble request, unless a preamble already Does LatestPreamble sig

[PATCH] D80784: [clangd][NFC] Explode ReceivedPreamble into a CV

2020-05-29 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet created this revision. kadircet added a reviewer: sammccall. Herald added subscribers: cfe-commits, usaxena95, arphaman, jkorous, MaskRay, javed.absar, ilya-biryukov. Herald added a project: clang. Instead of a notification, we make use of a CV and store the boolean on LatestPreamble by