IXWebSocket/ixwebsocket/IXSelectInterruptFactory.cpp

26 lines
556 B
C++
Raw Normal View History

2019-03-15 02:37:38 +01:00
/*
* IXSelectInterruptFactory.cpp
* Author: Benjamin Sergeant
* Copyright (c) 2019 Machine Zone, Inc. All rights reserved.
*/
#include "IXSelectInterruptFactory.h"
#if defined(__linux__) || defined(__APPLE__)
#include "IXSelectInterruptPipe.h"
2019-03-15 19:41:57 +01:00
#else
#include "IXSelectInterrupt.h"
2019-03-15 02:37:38 +01:00
#endif
namespace ix
{
SelectInterruptPtr createSelectInterrupt()
2019-03-15 02:37:38 +01:00
{
#if defined(__linux__) || defined(__APPLE__)
return std::make_unique<SelectInterruptPipe>();
2019-03-15 19:41:57 +01:00
#else
return std::make_unique<SelectInterrupt>();
2019-03-15 02:37:38 +01:00
#endif
}
2019-09-23 19:25:23 +02:00
} // namespace ix