| 73 | }; } |
| 74 | |
| 75 | static int init_event_engine(uint64_t engine, uint64_t flags, const PhotonOptions& opt) { |
| 76 | #ifdef PHOTON_URING |
| 77 | auto mee = (engine != INIT_EVENT_IOURING) ? |
| 78 | new_master_event_engine(engine) : |
| 79 | new_iouring_master_engine(mkargs(flags, opt)); |
| 80 | #else |
| 81 | auto mee = new_master_event_engine(engine); |
| 82 | #endif |
| 83 | return fd_events_init(mee); |
| 84 | } |
| 85 | |
| 86 | int __photon_init(uint64_t event_engine, uint64_t io_engine, const PhotonOptions& options) { |
| 87 | if (options.use_pooled_stack_allocator) { |
no test coverage detected