mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 15:24:07 +02:00
set jurisdiction listener object name for thread identification
This commit is contained in:
parent
6fa17dafff
commit
039ef0750c
2 changed files with 3 additions and 2 deletions
|
@ -39,7 +39,6 @@ bool ReceivedPacketProcessor::process() {
|
||||||
quint64 now = usecTimestampNow();
|
quint64 now = usecTimestampNow();
|
||||||
quint64 sinceLastWindow = now - _lastWindowAt;
|
quint64 sinceLastWindow = now - _lastWindowAt;
|
||||||
|
|
||||||
|
|
||||||
if (sinceLastWindow > USECS_PER_SECOND) {
|
if (sinceLastWindow > USECS_PER_SECOND) {
|
||||||
lock();
|
lock();
|
||||||
float secondsSinceLastWindow = sinceLastWindow / USECS_PER_SECOND;
|
float secondsSinceLastWindow = sinceLastWindow / USECS_PER_SECOND;
|
||||||
|
|
|
@ -20,6 +20,8 @@ JurisdictionListener::JurisdictionListener(NodeType_t type) :
|
||||||
_nodeType(type),
|
_nodeType(type),
|
||||||
_packetSender(JurisdictionListener::DEFAULT_PACKETS_PER_SECOND)
|
_packetSender(JurisdictionListener::DEFAULT_PACKETS_PER_SECOND)
|
||||||
{
|
{
|
||||||
|
setObjectName("Jurisdiction Listener");
|
||||||
|
|
||||||
connect(DependencyManager::get<NodeList>().data(), &NodeList::nodeKilled, this, &JurisdictionListener::nodeKilled);
|
connect(DependencyManager::get<NodeList>().data(), &NodeList::nodeKilled, this, &JurisdictionListener::nodeKilled);
|
||||||
|
|
||||||
// tell our NodeList we want to hear about nodes with our node type
|
// tell our NodeList we want to hear about nodes with our node type
|
||||||
|
|
Loading…
Reference in a new issue