-
Notifications
You must be signed in to change notification settings - Fork 36.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
util: move threadinterrupt into util/ #26292
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Concept ACK. To make it more obvious to reviewers, it might be a good time to update the comments in |
#include <util/sock.h> | ||
#include <util/threadinterrupt.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Could replace with class CThreadInterrupt;
@@ -6,7 +6,7 @@ | |||
#define BITCOIN_UTIL_SOCK_H | |||
|
|||
#include <compat/compat.h> | |||
#include <threadinterrupt.h> | |||
#include <util/threadinterrupt.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Could replace with class CThreadInterrupt;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK 7b2d0b0
Rather than adding more duplicate commentary there, I've opened #26313 to drop those comments, in favour of doc/libraries.md, which is much more comprehensive. |
…o libraries.md af781bf doc: fix typo in doc/libraries.md (fanquake) 9e9ae61 doc: remove library commentary from src/Makefile.am (fanquake) Pull request description: Deduplicate the makefile comments, in favour of doc/libraries.md. I think a single, more comprehensive source of truth is preferable. Diagrams are also useful. Came up in bitcoin/bitcoin#26292 (comment). ACKs for top commit: ryanofsky: Code review ACK af781bf, nice cleanups hebasto: ACK af781bf, I have reviewed the code and it looks OK, I agree it can be merged. Tree-SHA512: df61ed1394102221701ae2dfa42886dfabe9d9fd7f601b794e2195f93d8f7c2a1cd1c000a77d0a969b42328e8ebc0387755c57291837b283fdf376dbd98fdda1
7b2d0b0
to
bd79938
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK bd79938
afbcd22 build: remove threadinterrupt from libbitcoinkernel (fanquake) Pull request description: Extracted from #26292. ACKs for top commit: hebasto: ACK afbcd22, tested on Ubuntu 22.04. ryanofsky: Code review ACK afbcd22 Tree-SHA512: 9d355f0e417561be41cdd0674a8f94c9ffe3ecfb4063bb9c90f1032cb9d471be11d4fa26de40993e3a411e015272201551fbbb3d3c2b43e4c17bf49386a2741c
bd79938
to
b895304
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review ACK b895304. No changes since last review other than rebase
afbcd22 build: remove threadinterrupt from libbitcoinkernel (fanquake) Pull request description: Extracted from bitcoin#26292. ACKs for top commit: hebasto: ACK afbcd22, tested on Ubuntu 22.04. ryanofsky: Code review ACK afbcd22 Tree-SHA512: 9d355f0e417561be41cdd0674a8f94c9ffe3ecfb4063bb9c90f1032cb9d471be11d4fa26de40993e3a411e015272201551fbbb3d3c2b43e4c17bf49386a2741c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK b895304.
No objection, but why the added includes (i2p.cpp for ex) where the matching header already pulls it in?
Alongside thread and threadnames. It's part of libbitcoin_util.