iwyu, doc: Document IWYU pragma: export for <threadsafety.h>

This commit is contained in:
Hennadii Stepanov
2026-03-10 18:03:51 +00:00
parent 179abb387f
commit 48bfcfedec
13 changed files with 7 additions and 11 deletions

View File

@@ -9,7 +9,7 @@
#include <dbwrapper.h>
#include <interfaces/chain.h>
#include <kernel/cs_main.h>
#include <threadsafety.h>
#include <sync.h>
#include <uint256.h>
#include <util/fs.h>
#include <util/threadinterrupt.h>

View File

@@ -11,7 +11,6 @@
#include <node/txorphanage.h>
#include <private_broadcast.h>
#include <protocol.h>
#include <threadsafety.h>
#include <uint256.h>
#include <util/expected.h>
#include <validationinterface.h>

View File

@@ -11,7 +11,6 @@
#include <kernel/caches.h>
#include <node/blockstorage.h>
#include <sync.h>
#include <threadsafety.h>
#include <tinyformat.h>
#include <txdb.h>
#include <uint256.h>

View File

@@ -8,7 +8,6 @@
#include <kernel/notifications_interface.h>
#include <sync.h>
#include <threadsafety.h>
#include <uint256.h>
#include <atomic>

View File

@@ -9,7 +9,6 @@
#include <policy/feerate.h>
#include <random.h>
#include <sync.h>
#include <threadsafety.h>
#include <uint256.h>
#include <util/fs.h>
#include <validationinterface.h>

View File

@@ -7,7 +7,7 @@
#include <consensus/amount.h>
#include <primitives/transaction.h>
#include <threadsafety.h>
#include <sync.h>
#include <txmempool.h>
#include <util/feefrac.h>

View File

@@ -9,7 +9,6 @@
#include <primitives/transaction.h>
#include <primitives/transaction_identifier.h>
#include <sync.h>
#include <threadsafety.h>
#include <util/time.h>
#include <optional>

View File

@@ -9,7 +9,6 @@
#include <core_io.h>
#include <streams.h>
#include <sync.h>
#include <threadsafety.h>
#include <util/fs.h>
#include <validation.h>

View File

@@ -7,7 +7,6 @@
#include <attributes.h>
#include <sync.h>
#include <threadsafety.h>
#include <util/task_runner.h>
#include <chrono>

View File

@@ -6,6 +6,8 @@
#ifndef BITCOIN_SYNC_H
#define BITCOIN_SYNC_H
// This header declares threading primitives compatible with Clang
// Thread Safety Analysis and provides appropriate annotation macros.
#include <threadsafety.h> // IWYU pragma: export
#include <util/macros.h>

View File

@@ -13,10 +13,10 @@
#include <node/connection_types.h>
#include <node/eviction.h>
#include <protocol.h>
#include <sync.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/util.h>
#include <test/util/net.h>
#include <threadsafety.h>
#include <util/asmap.h>
#include <util/sock.h>

View File

@@ -6,6 +6,8 @@
#ifndef BITCOIN_UTIL_STDMUTEX_H
#define BITCOIN_UTIL_STDMUTEX_H
// This header declares threading primitives compatible with Clang
// Thread Safety Analysis and provides appropriate annotation macros.
#include <threadsafety.h> // IWYU pragma: export
#include <mutex>

View File

@@ -6,7 +6,6 @@
#define BITCOIN_UTIL_THREADINTERRUPT_H
#include <sync.h>
#include <threadsafety.h>
#include <atomic>
#include <chrono>