mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
Merge bitcoin/bitcoin#24740: doc: remove incorrect mention of PR_GET_NAME
e8fc236da7
refactor: add missing std:: includes to threadnames.cpp (fanquake)87f3c04cc5
doc: remove incorrect mention of PR_GET_NAME (fanquake) Pull request description: By removing the whole comment. These `#include // For` comments are near impossible to maintain, pollute diffs, and generally don't add a lot of value. While here, also add the missing `std::` includes. ACKs for top commit: junderw: LGTM ACKe8fc236
Tree-SHA512: d29aff40c94f59c42f295a5738bc5ff2f4a2f2e6d270cc505f27d56d07d272597e2f8403d72fe45775661e1a1fc2af9fc52aeaeb41263bd3e9dfe255332383c8
This commit is contained in:
commit
d018db966a
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@
|
|||
#include <config/bitcoin-config.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
|
||||
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
|
||||
#include <pthread.h>
|
||||
|
@ -16,7 +18,7 @@
|
|||
#include <util/threadnames.h>
|
||||
|
||||
#ifdef HAVE_SYS_PRCTL_H
|
||||
#include <sys/prctl.h> // For prctl, PR_SET_NAME, PR_GET_NAME
|
||||
#include <sys/prctl.h>
|
||||
#endif
|
||||
|
||||
//! Set the thread's name at the process level. Does not affect the
|
||||
|
|
Loading…
Reference in a new issue