From 9fb9d6ce5aaedd4ecf4f7bdc9c33a94b1e6597b2 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Wed, 19 Apr 2023 10:43:28 +0200 Subject: tweaks for enabling unity builds mostly changes to make sure anonymous namespaces don't clash and a change to avoid windows headers from leaking into other compilation units unity builds are not yet enabled by default, but can be enabled by uncommenting this line in the root `xmake.lua` ``` --add_rules("c++.unity_build") ``` --- zenhttp/httpsys.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zenhttp/httpsys.cpp') diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 4b566905e..16ec135cd 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -1662,5 +1662,11 @@ HttpSysServer::RegisterService(HttpService& Service) RegisterService(Service.BaseUri(), Service); } +Ref +CreateHttpSysServer(int Concurrency, int BackgroundWorkerThreads) +{ + return Ref(new HttpSysServer(Concurrency, BackgroundWorkerThreads)); +} + } // namespace zen #endif -- cgit v1.2.3