mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 19:13:38 +02:00
rename dest to destination for SendQueue
This commit is contained in:
parent
feddb613e2
commit
fe100695f0
2 changed files with 4 additions and 4 deletions
|
@ -25,14 +25,14 @@
|
|||
using namespace udt;
|
||||
using namespace std::chrono;
|
||||
|
||||
std::unique_ptr<SendQueue> SendQueue::create(Socket* socket, HifiSockAddr dest) {
|
||||
auto queue = std::unique_ptr<SendQueue>(new SendQueue(socket, dest));
|
||||
std::unique_ptr<SendQueue> SendQueue::create(Socket* socket, HifiSockAddr destination) {
|
||||
auto queue = std::unique_ptr<SendQueue>(new SendQueue(socket, destination));
|
||||
|
||||
Q_ASSERT_X(socket, "SendQueue::create", "Must be called with a valid Socket*");
|
||||
|
||||
// Setup queue private thread
|
||||
QThread* thread = new QThread();
|
||||
thread->setObjectName("Networking: SendQueue " + dest.objectName()); // Name thread for easier debug
|
||||
thread->setObjectName("Networking: SendQueue " + destination.objectName()); // Name thread for easier debug
|
||||
|
||||
connect(thread, &QThread::started, queue.get(), &SendQueue::run);
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ class SendQueue : public QObject {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static std::unique_ptr<SendQueue> create(Socket* socket, HifiSockAddr dest);
|
||||
static std::unique_ptr<SendQueue> create(Socket* socket, HifiSockAddr destination);
|
||||
|
||||
void queuePacket(std::unique_ptr<Packet> packet);
|
||||
int getQueueSize() const { QReadLocker locker(&_packetsLock); return _packets.size(); }
|
||||
|
|
Loading…
Reference in a new issue