Replace ThreadDumpAddresses with a timer. #1787

pull jgarzik wants to merge 2 commits into bitcoin:master from jgarzik:timer changing 10 files +169 −28
  1. jgarzik commented at 6:21 AM on September 5, 2012: contributor

    Wanted to eliminate a silly thread that does nothing but waste system resources as a poor man's cron.

    boost.asio also has deadline_timer, which is worth investigating.

  2. Add timer, timer list classes. 09e44bb0df
  3. Replace ThreadDumpAddresses with a timer. 5cb618146c
  4. jgarzik commented at 6:21 AM on September 5, 2012: contributor

    Note not intended for 0.7.

  5. laanwj commented at 5:22 AM on September 6, 2012: member

    Investigating boost.asio sounds like a good idea, before we build it entirely from scratch.

  6. BitcoinPullTester commented at 4:14 AM on September 7, 2012: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/5cb618146cedc7630513afb016ef386e6bd4f172 for binaries and test log.

  7. sipa commented at 2:55 PM on September 28, 2012: member

    Looks like a lot of code for a feature that should be standard. I assume it will be easier using boost::asio?

  8. jgarzik commented at 3:58 PM on September 28, 2012: contributor

    Most likely we can use boost.asio deadline_timer... but that requires moving the "io_service" from RPC into the core code, so that non-RPC code may take advantage of the async I/O engine (and the timers that lie within).

  9. luke-jr commented at 5:57 AM on November 13, 2012: member

    Needs rebase.

  10. jgarzik commented at 2:41 AM on November 16, 2012: contributor

    closing, self-meh.

    should consider boost deadline timer, rather than creating threads for same.

  11. jgarzik closed this on Nov 16, 2012

  12. jgarzik deleted the branch on Aug 24, 2014
  13. DrahtBot locked this on Sep 8, 2021

Milestone
0.8.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-20 00:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me