1 | /* |
---|---|
2 | * IXSelectInterruptFactory.cpp |
3 | * Author: Benjamin Sergeant |
4 | * Copyright (c) 2019 Machine Zone, Inc. All rights reserved. |
5 | */ |
6 | |
7 | #include "IXSelectInterruptFactory.h" |
8 | |
9 | #include "IXUniquePtr.h" |
10 | #if _WIN32 |
11 | #include "IXSelectInterruptEvent.h" |
12 | #else |
13 | #include "IXSelectInterruptPipe.h" |
14 | #endif |
15 | |
16 | namespace ix |
17 | { |
18 | SelectInterruptPtr createSelectInterrupt() |
19 | { |
20 | #ifdef _WIN32 |
21 | return ix::make_unique<SelectInterruptEvent>(); |
22 | #else |
23 | return ix::make_unique<SelectInterruptPipe>(); |
24 | #endif |
25 | } |
26 | } // namespace ix |
27 |