2019-03-14 18:37:38 -07:00
|
|
|
/*
|
|
|
|
* IXSelectInterruptFactory.cpp
|
|
|
|
* Author: Benjamin Sergeant
|
|
|
|
* Copyright (c) 2019 Machine Zone, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "IXSelectInterruptFactory.h"
|
|
|
|
|
2020-11-15 09:56:37 -08:00
|
|
|
#include "IXUniquePtr.h"
|
2022-01-05 19:21:33 +01:00
|
|
|
#if _WIN32
|
|
|
|
#include "IXSelectInterruptEvent.h"
|
2019-03-15 11:41:57 -07:00
|
|
|
#else
|
2022-01-05 19:21:33 +01:00
|
|
|
#include "IXSelectInterruptPipe.h"
|
2019-03-14 18:37:38 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace ix
|
|
|
|
{
|
2020-03-24 10:00:41 -07:00
|
|
|
SelectInterruptPtr createSelectInterrupt()
|
2019-03-14 18:37:38 -07:00
|
|
|
{
|
2022-01-05 19:21:33 +01:00
|
|
|
#ifdef _WIN32
|
|
|
|
return ix::make_unique<SelectInterruptEvent>();
|
2019-03-15 11:41:57 -07:00
|
|
|
#else
|
2022-01-05 19:21:33 +01:00
|
|
|
return ix::make_unique<SelectInterruptPipe>();
|
2019-03-14 18:37:38 -07:00
|
|
|
#endif
|
|
|
|
}
|
2019-09-23 10:25:23 -07:00
|
|
|
} // namespace ix
|