(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

@ -9,6 +9,7 @@
#include "IXDNSLookup.h"
#include "IXNetSystem.h"
#include "IXSocket.h"
#include "IXSelectInterrupt.h"
#include <fcntl.h>
#include <string.h>
#include <sys/types.h>
@ -64,7 +65,8 @@ namespace ix
int timeoutMs = 10;
bool readyToRead = false;
PollResultType pollResult = Socket::poll(readyToRead, timeoutMs, fd);
auto selectInterrupt = std::make_unique<SelectInterrupt>();
PollResultType pollResult = Socket::poll(readyToRead, timeoutMs, fd, selectInterrupt);
if (pollResult == PollResultType::Timeout)
{