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"
|
|
|
|
|
2020-11-15 18:56:37 +01:00
|
|
|
#include "IXUniquePtr.h"
|
2022-01-05 19:21:33 +01:00
|
|
|
#if _WIN32
|
|
|
|
#include "IXSelectInterruptEvent.h"
|
2019-03-15 19:41:57 +01:00
|
|
|
#else
|
2022-01-05 19:21:33 +01:00
|
|
|
#include "IXSelectInterruptPipe.h"
|
2019-03-15 02:37:38 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace ix
|
|
|
|
{
|
2020-03-24 18:00:41 +01:00
|
|
|
SelectInterruptPtr createSelectInterrupt()
|
2019-03-15 02:37:38 +01:00
|
|
|
{
|
2022-01-05 19:21:33 +01:00
|
|
|
#ifdef _WIN32
|
|
|
|
return ix::make_unique<SelectInterruptEvent>();
|
2019-03-15 19:41:57 +01:00
|
|
|
#else
|
2022-01-05 19:21:33 +01:00
|
|
|
return ix::make_unique<SelectInterruptPipe>();
|
2019-03-15 02:37:38 +01:00
|
|
|
#endif
|
|
|
|
}
|
2019-09-23 19:25:23 +02:00
|
|
|
} // namespace ix
|