[clangd] Make Notification a little safer.
authorSam McCall <sam.mccall@gmail.com>
Sat, 25 Jan 2020 14:31:55 +0000 (15:31 +0100)
committerSam McCall <sam.mccall@gmail.com>
Sat, 25 Jan 2020 14:31:55 +0000 (15:31 +0100)
commitd08563486e06df3ddb4d7c1018d1e1e762690ee8
tree1c7e493961b1057ce5a5a09b018025f645c10ef8
parent18e6a65bae93a7bf0e718415b394fe4b0f09221e
[clangd] Make Notification a little safer.

I just fixed a test involving a similar Notification class: 18e6a65bae93a

The pattern (notify() on one thread, wait() and then destroy the Notification
on the other) seems innocuous enough. I'm not sure we actually use it in clangd,
but better safe than sorry.
clang-tools-extra/clangd/Threading.cpp