Automatic service discovery for Windows

This commit is contained in:
loki
2021-06-28 21:05:52 +02:00
parent d6eceaf0dc
commit 0cc7e35ed9
6 changed files with 206 additions and 5 deletions

View File

@@ -208,6 +208,11 @@ int main(int argc, char *argv[]) {
return 3;
}
std::unique_ptr<platf::deinit_t> unregister;
auto sync = std::async(std::launch::async, [&unregister]() {
unregister = platf::publish::start();
});
//FIXME: Temporary workaround: Simple-Web_server needs to be updated or replaced
if(shutdown_event->peek()) {
return 0;
@@ -215,9 +220,9 @@ int main(int argc, char *argv[]) {
task_pool.start(1);
auto deinit = platf::publish::start();
std::thread httpThread { nvhttp::start };
std::thread configThread { confighttp::start };
stream::rtpThread();
httpThread.join();