[Chore](build) enable fallthrough check annd fix some fallthrough bug (#16748)

* enable fallthrough check annd fix some fallthrough bug

* fix

* fix
This commit is contained in:
Pxl
2023-02-15 15:58:43 +08:00
committed by GitHub
parent 585b74b175
commit f50edff59d
18 changed files with 77 additions and 194 deletions

View File

@ -139,7 +139,7 @@ void ThreadPoolToken::shutdown() {
break;
}
transition(State::QUIESCING);
FALLTHROUGH_INTENDED;
[[fallthrough]];
case State::QUIESCING:
// The token is already quiescing. Just wait for a worker thread to
// switch it to QUIESCED.