MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / init_event_engine

Function init_event_engine

photon.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}; }
74
75static 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
86int __photon_init(uint64_t event_engine, uint64_t io_engine, const PhotonOptions& options) {
87 if (options.use_pooled_stack_allocator) {

Callers 1

__photon_initFunction · 0.85

Calls 4

mkargsFunction · 0.85
new_master_event_engineFunction · 0.50
fd_events_initFunction · 0.50

Tested by

no test coverage detected