Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Jan 19, 2015

The main thread spends time waiting for the DetectShutdownThread. So why not just run this waiting loop function in the main thread?

One thread-stack less saves 4MB of virtual memory on 32-bit, and 8MB on 64-bit.

The main thread spends time waiting for the DetectShutdownThread.
So why not just run this waiting loop function in the main thread?

One thread-stack less saves 4MB of virtual memory on 32-bit, and 8MB on
64-bit.
@jonasschnelli
Copy link
Contributor

ACK

@laanwj laanwj merged commit 28ee7e8 into bitcoin:master Feb 9, 2015
laanwj added a commit that referenced this pull request Feb 9, 2015
28ee7e8 Get rid of DetectShutdownThread (Wladimir J. van der Laan)
maflcko pushed a commit that referenced this pull request Apr 15, 2020
808ef36 [doc] Update thread information in developer docs (John Newbery)

Pull request description:

  - DumpAddresses thread was removed in #5964
  - Shutdown thread was removed in #5679
  - Add new threads (scheduler, RPC worker, indexer, tor control)
  - Small changes to documentation of other threads

ACKs for top commit:
  MarcoFalke:
    ACK 808ef36
  hebasto:
    ACK 808ef36.

Tree-SHA512: 85b6ace7bcc4dee030c63461bef1ded1a9581d4fa249c59f6fcd5d33d89c4357a6b8b35888ce0960f276d397b5e38a21e6c5d4b7b79544827a28c950e097b36d
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Apr 16, 2020
808ef36 [doc] Update thread information in developer docs (John Newbery)

Pull request description:

  - DumpAddresses thread was removed in bitcoin#5964
  - Shutdown thread was removed in bitcoin#5679
  - Add new threads (scheduler, RPC worker, indexer, tor control)
  - Small changes to documentation of other threads

ACKs for top commit:
  MarcoFalke:
    ACK 808ef36
  hebasto:
    ACK 808ef36.

Tree-SHA512: 85b6ace7bcc4dee030c63461bef1ded1a9581d4fa249c59f6fcd5d33d89c4357a6b8b35888ce0960f276d397b5e38a21e6c5d4b7b79544827a28c950e097b36d
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants