[Libreoffice-commits] online.git: kit/Kit.cpp

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Tue Jan 7 11:44:08 UTC 2020


 kit/Kit.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8522cbdb9fc067e1666fd2fdb739ec120e2752d7
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Tue Jan 7 10:45:34 2020 +0000
Commit:     Michael Meeks <michael.meeks at collabora.com>
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 <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

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)


More information about the Libreoffice-commits mailing list