Define a list of priority queries.

This commit is contained in:
Bartosz Taudul 2022-03-31 00:02:02 +02:00
parent 8aeda02d8a
commit d691cb2a06
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -253,6 +253,19 @@ static void ReadHwSampleVec( FileRead& f, SortedVector<Int48, Int48Sort>& vec, S
}
}
// Should be just a simple comparison. Do this when protocol version changes.
static bool IsQueryPrio( ServerQuery type )
{
return
type == ServerQuery::ServerQueryString ||
type == ServerQuery::ServerQueryThreadString ||
type == ServerQuery::ServerQuerySourceLocation ||
type == ServerQuery::ServerQueryPlotName ||
type == ServerQuery::ServerQueryFrameName ||
type == ServerQuery::ServerQueryParameter ||
type == ServerQuery::ServerQueryFiberName;
}
LoadProgress Worker::s_loadProgress;