mirror of
https://github.com/overte-org/overte.git
synced 2025-07-07 04:10:01 +02:00
windows build
This commit is contained in:
parent
b6b2b7f58b
commit
dec16c8f0b
2 changed files with 15 additions and 11 deletions
|
@ -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();
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
Loading…
Reference in a new issue