Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2015-09-26 01:21:13 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-28 18:38:59 +0300
commit67694e80b2f7f8a825e9d04444e16f870d81c6a8 (patch)
tree2c9676db34967386c34de565d937b3438d9d4dae /platform/platform.hpp
parentfa7b4e965b21fe5ff43d89d837c7697dcaeced40 (diff)
Correct fix for CpuCount() which can change in runtime.
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r--platform/platform.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp
index be5e8e4db1..d90f3b089d 100644
--- a/platform/platform.hpp
+++ b/platform/platform.hpp
@@ -173,6 +173,8 @@ public:
void RunAsync(TFunctor const & fn, Priority p = EPriorityDefault);
//@}
+ // Please note, that number of active cores can vary at runtime.
+ // DO NOT assume for the same return value between calls.
unsigned CpuCores() const;
void GetFontNames(FilesList & res) const;