(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

@ -14,12 +14,12 @@
namespace ix
{
std::shared_ptr<SelectInterrupt> createSelectInterrupt()
SelectInterruptPtr createSelectInterrupt()
{
#if defined(__linux__) || defined(__APPLE__)
return std::make_shared<SelectInterruptPipe>();
return std::make_unique<SelectInterruptPipe>();
#else
return std::make_shared<SelectInterrupt>();
return std::make_unique<SelectInterrupt>();
#endif
}
} // namespace ix