diff options
author | Alex Zolotarev <alex@maps.me> | 2015-09-26 01:21:13 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-28 18:38:59 +0300 |
commit | 67694e80b2f7f8a825e9d04444e16f870d81c6a8 (patch) | |
tree | 2c9676db34967386c34de565d937b3438d9d4dae /platform/platform.hpp | |
parent | fa7b4e965b21fe5ff43d89d837c7697dcaeced40 (diff) |
Correct fix for CpuCount() which can change in runtime.
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r-- | platform/platform.hpp | 2 |
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; |