Merge pull request #410 from benvanik/benvanik-fiber-incomplete

Hiding the "Incomplete context switch data" warning on fibers.
This commit is contained in:
Bartosz Taudul 2022-06-14 17:17:40 +02:00 committed by GitHub
commit 49844872e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7471,7 +7471,7 @@ void View::DrawZoneInfoWindow()
{
const auto end = m_worker.GetZoneEnd( ev );
auto eit = std::upper_bound( it, ctx->v.end(), end, [] ( const auto& l, const auto& r ) { return l < r.Start(); } );
bool incomplete = eit == ctx->v.end();
bool incomplete = eit == ctx->v.end() && !m_worker.IsThreadFiber( tid );
uint64_t cnt = std::distance( it, eit );
if( cnt == 1 )
{