diff options
author | David Carlier <[email protected]> | 2019-04-01 20:14:47 +0100 |
---|---|---|
committer | David Carlier <[email protected]> | 2019-04-07 13:59:09 +0100 |
commit | 358be63d14df48872e85a6c09cfa9a89404d2d2e (patch) | |
tree | 36c8faf2a90db58129d9d025e0e2b1963fd51dc9 /src/lib/utils/os_utils.h | |
parent | 7beb65eb60767330b1d0acc76517109f54c61e0d (diff) |
Using available cores rather than total for the pools.
Issue with the C++ api it might not reflect the reality of the H/W,
and on Android, in battery saving mode for example, might be more
reasonable to use what the system really offers.
Diffstat (limited to 'src/lib/utils/os_utils.h')
-rw-r--r-- | src/lib/utils/os_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/utils/os_utils.h b/src/lib/utils/os_utils.h index 82f3aad04..f597387c7 100644 --- a/src/lib/utils/os_utils.h +++ b/src/lib/utils/os_utils.h @@ -50,6 +50,9 @@ bool running_in_privileged_state(); */ uint64_t BOTAN_TEST_API get_cpu_cycle_counter(); +size_t BOTAN_TEST_API get_cpu_total(); +size_t BOTAN_TEST_API get_cpu_available(); + /* * @return best resolution timestamp available * |