mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-28 22:11:04 +02:00
CR
This commit is contained in:
parent
0b847488d7
commit
a877bf44fb
3 changed files with 4 additions and 4 deletions
|
@ -47,7 +47,7 @@ void OctreeInboundPacketProcessor::resetStats() {
|
||||||
_singleSenderStats.clear();
|
_singleSenderStats.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long OctreeInboundPacketProcessor::getMaxWait() const {
|
uint32_t OctreeInboundPacketProcessor::getMaxWait() const {
|
||||||
// calculate time until next sendNackPackets()
|
// calculate time until next sendNackPackets()
|
||||||
quint64 nextNackTime = _lastNackTime + TOO_LONG_SINCE_LAST_NACK;
|
quint64 nextNackTime = _lastNackTime + TOO_LONG_SINCE_LAST_NACK;
|
||||||
quint64 now = usecTimestampNow();
|
quint64 now = usecTimestampNow();
|
||||||
|
|
|
@ -80,7 +80,7 @@ protected:
|
||||||
|
|
||||||
virtual void processPacket(QSharedPointer<ReceivedMessage> message, SharedNodePointer sendingNode) override;
|
virtual void processPacket(QSharedPointer<ReceivedMessage> message, SharedNodePointer sendingNode) override;
|
||||||
|
|
||||||
virtual unsigned long getMaxWait() const override;
|
virtual uint32_t getMaxWait() const override;
|
||||||
virtual void preProcess() override;
|
virtual void preProcess() override;
|
||||||
virtual void midProcess() override;
|
virtual void midProcess() override;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
class ReceivedPacketProcessor : public GenericThread {
|
class ReceivedPacketProcessor : public GenericThread {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
static const unsigned long MAX_WAIT_TIME { 100 };
|
static const uint64_t MAX_WAIT_TIME { 100 }; // Max wait time in ms
|
||||||
|
|
||||||
ReceivedPacketProcessor();
|
ReceivedPacketProcessor();
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ protected:
|
||||||
virtual bool process() override;
|
virtual bool process() override;
|
||||||
|
|
||||||
/// Determines the timeout of the wait when there are no packets to process. Default value is 100ms to allow for regular event processing.
|
/// Determines the timeout of the wait when there are no packets to process. Default value is 100ms to allow for regular event processing.
|
||||||
virtual unsigned long getMaxWait() const { return MAX_WAIT_TIME; }
|
virtual uint32_t getMaxWait() const { return MAX_WAIT_TIME; }
|
||||||
|
|
||||||
/// Override to do work before the packets processing loop. Default does nothing.
|
/// Override to do work before the packets processing loop. Default does nothing.
|
||||||
virtual void preProcess() { }
|
virtual void preProcess() { }
|
||||||
|
|
Loading…
Reference in a new issue