BlockingLoop: Add explicit [[fallthrough]] annotations

This commit is contained in:
Lioncash 2021-04-19 17:34:46 -04:00
parent ec5fbeb0d6
commit e1dfcda8a6
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,7 @@ public:
// However, if we're not in the STATE_DONE state any more, the event should also be
// triggered so that we'll skip the next waiting call quite fast.
m_done_event.Set();
[[fallthrough]];
case STATE_DONE:
// We're done now. So time to check if we want to sleep or if we want to stay in a busy
@ -173,6 +174,7 @@ public:
// Busy loop.
break;
}
[[fallthrough]];
case STATE_SLEEPING:
// Just relax