From e72d3127bf85b701ed641e348ce9cc4d5f09decf Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Tue, 11 Mar 2014 21:25:30 -0700 Subject: [PATCH] fix comment and remove dead code --- libraries/shared/src/PacketSender.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libraries/shared/src/PacketSender.cpp b/libraries/shared/src/PacketSender.cpp index 062976cc37..9fac115a39 100644 --- a/libraries/shared/src/PacketSender.cpp +++ b/libraries/shared/src/PacketSender.cpp @@ -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);