aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/thread_utils
Commit message (Collapse)AuthorAgeFilesLines
* Resolve various integer conversion warnings from MSVCJack Lloyd2019-12-061-1/+1
|
* Add a RWLockJack Lloyd2019-09-233-1/+102
|
* Fix some warnings with Clang 8Jack Lloyd2019-05-081-3/+2
| | | | | | Notably several from the new -Wdefaulted-function-deleted Also remove some compat macro checks for MSVC 2013
* Using available cores rather than total for the pools.David Carlier2019-04-071-1/+1
| | | | | | 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.
* Use the global thread pool for XMSS signaturesJack Lloyd2019-03-261-0/+2
| | | | | | | * i7-6700K (4 core w/SMT): 10% improvements * Ryzen 7 2700 (8 core w/SMT): 25% improvement except SHA-256 which is over twice as fast. * POWER8 (160 cores w/SMT): between 25 and 60% faster
* Add a thread poolJack Lloyd2019-01-313-1/+186
|
* Compile fixJack Lloyd2019-01-302-2/+2
|
* Use std::mutex instead of mutex_type hereJack Lloyd2019-01-304-8/+8
| | | | | std::condition_variable only works with std::mutex anyway, and this module is not enabled on systems without threads.
* Move thread utils (barrier and semaphore) to a subpackage of utilJack Lloyd2018-01-125-0/+162
They are not needed except by the filter code so being able to easily remove them from the build is nice; utils is always compiled in so that should be as small as possible.