kit/Kit.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8522cbdb9fc067e1666fd2fdb739ec120e2752d7
Author: Michael Meeks <[email protected]>
AuthorDate: Tue Jan 7 10:45:34 2020 +0000
Commit: Michael Meeks <[email protected]>
CommitDate: Tue Jan 7 12:43:47 2020 +0100
android: pick a good value for threads.
Change-Id: I2a550257a6a9cb176c67a888b7838855db06fe4b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86334
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Michael Meeks <[email protected]>
diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index f2930d923..fd5ebc9ba 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -598,7 +598,7 @@ public:
{
int maxConcurrency = 2;
#if MOBILEAPP && !defined(GTKAPP)
-# warning "Good defaults ? - 2 for iOS, 4 for Android ?"
+ maxConcurrency = std::max<int>(std::thread::hardware_concurrency(), 2);
#else
const char *max = getenv("MAX_CONCURRENCY");
if (max)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits