Instead of a notification, we make use of a CV and store the boolean on
LatestPreamble by converting it into an optional.
Depends on D80293.
Paths
| Differential D80784
[clangd][NFC] Explode ReceivedPreamble into a CV ClosedPublic Authored by kadircet on May 29 2020, 3:06 AM.
Details
Summary Instead of a notification, we make use of a CV and store the boolean on Depends on D80293.
Diff Detail
Unit TestsFailed Event Timeline
kadircet added inline comments.
kadircet marked 2 inline comments as done. Comment Actions
This revision is now accepted and ready to land.Jun 9 2020, 6:06 AM Closed by commit rG406ac49fb05e: [clangd][NFC] Explode ReceivedPreamble into a CV (authored by kadircet). · Explain WhyJun 9 2020, 9:19 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 269487 clang-tools-extra/clangd/TUScheduler.cpp
|
Does LatestPreamble signal RequestsCV or just PreambleCV?
Seems like it might be less error-prone to have just one CV, signalled when preamble requests are scheduled, latest preamble becomes available, and on shutdown. The spurious wakeups shouldn't be a real problem, right?