MCPcopy Create free account
hub / github.com/3rdparty/libprocess / initialize

Method initialize

src/windows/event_loop.cpp:29–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27windows::EventLoop* libwinio_loop;
28
29void EventLoop::initialize()
30{
31 static Once* initialized = new Once();
32
33 if (initialized->once()) {
34 return;
35 }
36
37 Try<windows::EventLoop*> try_loop = windows::EventLoop::create();
38 if (try_loop.isError()) {
39 LOG(FATAL) << "Failed to initialize Windows IOCP event loop";
40 }
41
42 libwinio_loop = try_loop.get();
43
44 initialized->done();
45}
46
47
48void EventLoop::delay(

Callers

nothing calls this directly

Calls 3

onceMethod · 0.80
doneMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected