mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
net_processing: thread safety annotation for m_tx_relay_mutex
This commit is contained in:
parent
2b3373c152
commit
f24bd45b37
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ struct Peer {
|
||||||
return m_tx_relay.get();
|
return m_tx_relay.get();
|
||||||
};
|
};
|
||||||
|
|
||||||
TxRelay* GetTxRelay()
|
TxRelay* GetTxRelay() EXCLUSIVE_LOCKS_REQUIRED(!m_tx_relay_mutex)
|
||||||
{
|
{
|
||||||
return WITH_LOCK(m_tx_relay_mutex, return m_tx_relay.get());
|
return WITH_LOCK(m_tx_relay_mutex, return m_tx_relay.get());
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue