mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-03 02:32:54 +02:00
fix comment and remove dead code
This commit is contained in:
parent
025da315c6
commit
e72d3127bf
1 changed files with 1 additions and 5 deletions
|
@ -115,12 +115,8 @@ bool PacketSender::threadedProcess() {
|
|||
}
|
||||
}
|
||||
|
||||
// if threaded and we haven't slept? We want to sleep a little so we don't hog the CPU, but
|
||||
// we don't want to sleep too long because how ever much we sleep will delay any future unsent
|
||||
// packets that arrive while we're sleeping. So we sleep 1/2 of our target fps interval
|
||||
// if threaded and we haven't slept? We want to wait for our consumer to signal us with new packets
|
||||
if (!hasSlept) {
|
||||
//usleep(MINIMAL_SLEEP_INTERVAL);
|
||||
|
||||
// wait till we have packets
|
||||
_waitingOnPacketsMutex.lock();
|
||||
_hasPackets.wait(&_waitingOnPacketsMutex);
|
||||
|
|
Loading…
Reference in a new issue