summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@heap.zone>2019-03-03 13:52:14 +0100
committerJonathan Schleifer <js@heap.zone>2019-03-03 13:52:14 +0100
commit237b373cb242ece3e583afc56ab2f7ba93eea879 (patch)
tree250eec7ef3612d3d3795a792005dbf7859dc365e
parent734b3739f7e0f56e8d40f7dfe9e160187757eb3e (diff)
Enable multi-threading
-rw-r--r--ObjWebServer.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/ObjWebServer.m b/ObjWebServer.m
index 6d9e4cc..9c0dbea 100644
--- a/ObjWebServer.m
+++ b/ObjWebServer.m
@@ -92,6 +92,7 @@ OF_APPLICATION_DELEGATE(ObjWebServer)
[server setHost: host];
[server setPort: port];
[server setDelegate: self];
+ [server setNumberOfThreads: [OFSystemInfo numberOfCPUs] + 1];
of_log(@"Starting server on host %@ port %" PRIu16, host, port);