(socket) selectInterrupt member is an unique_ptr instead of being a shared_ptr

This commit is contained in:
Benjamin Sergeant
2020-03-24 10:00:41 -07:00
parent 9dcc2538ae
commit 9f818c7acf
9 changed files with 20 additions and 14 deletions

View File

@ -11,6 +11,7 @@
#include "IXSocket.h"
#include "IXSocketConnect.h"
#include "IXSocketFactory.h"
#include "IXSelectInterrupt.h"
#include <assert.h>
#include <sstream>
#include <stdio.h>
@ -257,7 +258,8 @@ namespace ix
// Use poll to check whether a new connection is in progress
int timeoutMs = 10;
bool readyToRead = true;
PollResultType pollResult = Socket::poll(readyToRead, timeoutMs, _serverFd);
auto selectInterrupt = std::make_unique<SelectInterrupt>();
PollResultType pollResult = Socket::poll(readyToRead, timeoutMs, _serverFd, selectInterrupt);
if (pollResult == PollResultType::Error)
{