MCPcopy Create free account
hub / github.com/aui-framework/aui / UnixIoThread

Method UnixIoThread

aui.core/src/AUI/Platform/unix/UnixIoThread.cpp:101–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101UnixIoThread::UnixIoThread() noexcept: mThread(_new<AThread>([&] {
102 AThread::setName("AUI IO");
103 UnixIoEventLoop loop(*this);
104 IEventLoop::Handle handle(&loop);
105 AThread::current()->getCurrentEventLoop()->loop();
106})), mEpollFd(epoll_create1(0)) {
107 registerCallback(mNotifyEvent.handle(), UnixPollEvent::IN, [this](ABitField<UnixPollEvent> f) {
108 mNotifyEvent.reset();
109 });
110
111 mThread->start();
112 AFuture<> cs;
113 mThread->enqueue([&] {
114 cs.supplyValue();
115 });
116 cs.wait();
117}
118
119#else
120

Callers

nothing calls this directly

Calls 9

setNameFunction · 0.85
currentFunction · 0.50
loopMethod · 0.45
handleMethod · 0.45
resetMethod · 0.45
startMethod · 0.45
enqueueMethod · 0.45
supplyValueMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected