windows build

This commit is contained in:
Brad Hefta-Gaub 2014-01-10 21:21:07 -08:00
parent b6b2b7f58b
commit dec16c8f0b
2 changed files with 15 additions and 11 deletions

View file

@ -57,6 +57,11 @@ void PacketSender::queuePacketForSending(const HifiSockAddr& address, unsigned c
_totalBytesQueued += packetLength; _totalBytesQueued += packetLength;
} }
void PacketSender::setPacketsPerSecond(int packetsPerSecond) {
_packetsPerSecond = std::max(MINIMUM_PACKETS_PER_SECOND, packetsPerSecond);
}
bool PacketSender::process() { bool PacketSender::process() {
if (isThreaded()) { if (isThreaded()) {
return threadedProcess(); return threadedProcess();

View file

@ -45,8 +45,7 @@ public:
/// \thread any thread, typically the application thread /// \thread any thread, typically the application thread
void queuePacketForSending(const HifiSockAddr& address, unsigned char* packetData, ssize_t packetLength); void queuePacketForSending(const HifiSockAddr& address, unsigned char* packetData, ssize_t packetLength);
void setPacketsPerSecond(int packetsPerSecond) void setPacketsPerSecond(int packetsPerSecond);
{ _packetsPerSecond = std::max(MINIMUM_PACKETS_PER_SECOND, packetsPerSecond); }
int getPacketsPerSecond() const { return _packetsPerSecond; } int getPacketsPerSecond() const { return _packetsPerSecond; }
void setPacketSenderNotify(PacketSenderNotify* notify) { _notify = notify; } void setPacketSenderNotify(PacketSenderNotify* notify) { _notify = notify; }