aboutsummaryrefslogtreecommitdiff
path: root/src/common/threadpool.h (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-16Copyright: Update to 2023mj-xmr1-1/+1
Co-authored-by: plowsof <plowsof@protonmail.com> extra files
2022-12-18common: add missing includesselsta1-0/+1
2022-09-20Second thread pool for IOSChernykh1-1/+5
2022-03-04Copyright: Update to 2022mj-xmr1-1/+1
2020-09-01threadpool: guard against exceptions in jobs, and armour platingmoneromooo-monero1-2/+6
Those would, if uncaught, exit run and leave the waiter to wait indefinitely for the number of active jobs to reach 0
2020-05-06Update copyright year to 2020SomaticFanatic1-1/+1
Update copyright year to 2020
2019-11-10core_tests: reset thread pool between testsmoneromooo-monero1-0/+5
Avoids a DB error (leading to an assert) where a thread uses a read txn previously created with an environment that was since closed and reopened. While this usually works since BlockchainLMDB renews txns if it detects the environment has changed, this will not work if objects end up being allocated at the same address as the previous instance, leading to stale data usage. Thanks hyc for the LMDB debugging.
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2018-06-26threadpool: allow leaf functions to run concurrentlymoneromooo-monero1-3/+4
Decrease the number of worker threads by one to account for the fact the calling thread acts as a worker thread now
2018-05-20threadpool: allow constructing an object, and misc tweaksmoneromooo-monero1-5/+9
use unsigned int to avoid having to range check negative numbers, use const where possible, don't needlessly create empty objects, use std::move where possible
2018-02-02threadpool: catch exceptions in dtor, to avoid terminatemoneromooo-monero1-1/+2
If an exception is thrown, it is ignored. While this may hide a bug, this should only be system exceptions in boost, which is pretty unlikely. Morever, wait should be called manually before the dtor anyway. Add an error message if the dtor has to wait in case some such cases creep in so they get fixed. Coverity 182538
2018-01-26Readd copyright starting datexmr-eric1-1/+1
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2017-09-15Tweak concurrency limitsHoward Chu1-1/+1
Create capacity for 2x max, but lie about it
2017-09-14Use a threadpoolHoward Chu1-32/+51
Instead of constantly creating and destroying threads
2017-08-02node_rpc_proxy: add a proxy for target heightmoneromooo-monero1-11/+14
2017-02-27node_rpc_proxy: allow caching daemon RPC versionmoneromooo-monero1-0/+2
2017-02-27wallet: invalidate node proxy cache when reconnectingmoneromooo-monero1-0/+2
2017-01-25Updates to epee HTTP client codeLee Clagett1-5/+1
- http_simple_client now uses std::chrono for timeouts - http_simple_client accepts timeouts per connect / invoke call - shortened names of epee http invoke functions - invoke command functions only take relative path, connection is not automatically performed
2017-01-16wallet: add a node RPC cache layer for simple RPC callsmoneromooo-monero1-34/+28
Mostly getinfo and get_hard_fork_info, which are called pretty often. This speeds up transfers as a bonus.
2015-12-31updated copyright yearRiccardo Spagni1-1/+1
2015-10-27common: const and init list pedantrymoneromooo-monero1-1/+2
2015-05-31cleaning up, removing redundant files, renaming, fixing incorrect licensesRiccardo Spagni1-0/+28
2015-02-24Daemonize changes pulled in -- daemon buildsThomas Winget1-0/+42
many RPC functions added by the daemonize changes (and related changes on the upstream dev branch that were not merged) were commented out (apart from return). Other than that, this *should* work...at any rate, it builds, and that's something.