correct implementation of setupAsyncIo

This commit is contained in:
keldu.magnus 2021-06-09 14:15:46 +02:00
parent db5b1b8aa0
commit 7a5b5b7665
2 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,7 @@ def add_kel_source_files(self, sources, filetype, lib_env=None, shared=False, ta
pass
env=Environment(CPPPATH=['#source/kelgin','#source','#','#driver'],
CXX='c++',
CXX='clang++',
CPPDEFINES=['GIN_UNIX'],
CXXFLAGS=['-std=c++17','-g','-Wall','-Wextra'],
LIBS=['gnutls'])

View File

@ -247,7 +247,10 @@ Network &UnixIoProvider::network() {
EventLoop &UnixIoProvider::eventLoop() { return event_loop; }
} // namespace unix
ErrorOr<AsyncIoContext> setupAsyncIo() {
using namespace unix;
try {
Own<UnixEventPort> prt = heap<UnixEventPort>();
UnixEventPort &prt_ref = *prt;
@ -262,5 +265,4 @@ ErrorOr<AsyncIoContext> setupAsyncIo() {
return criticalError("Out of memory");
}
}
} // namespace unix
} // namespace gin