Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-04-18 14:39:49 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-04-18 14:39:49 +0300
commit95187c94e94c46214cb56e480f92fbaa40fbdcc0 (patch)
tree3e2079175cfa8284b4ab24340a311c67c9872c22 /server/TracyWorker.cpp
parentcd3f9c8831342af6670e200ccd2f365842602abf (diff)
Bump protocol to simplify IsQueryPrio().
Diffstat (limited to 'server/TracyWorker.cpp')
-rw-r--r--server/TracyWorker.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp
index d9967a93..552432b3 100644
--- a/server/TracyWorker.cpp
+++ b/server/TracyWorker.cpp
@@ -254,17 +254,9 @@ static uint64_t ReadHwSampleVec( FileRead& f, SortedVector<Int48, Int48Sort>& ve
return sz;
}
-// 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;
+ return type < ServerQuery::ServerQueryDisconnect;
}