mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
refactor: Propagate negative !m_tx_relay_mutex capability
Could be verified with $ ./configure CC=clang CXX=clang++ CXXFLAGS='-Wthread-safety -Wthread-safety-negative' $ make clean $ make 2>&1 | grep m_tx_relay_mutex
This commit is contained in:
parent
5a6e3c1db3
commit
2b3373c152
1 changed files with 1 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ struct Peer {
|
|||
};
|
||||
|
||||
/* Initializes a TxRelay struct for this peer. Can be called at most once for a peer. */
|
||||
TxRelay* SetTxRelay()
|
||||
TxRelay* SetTxRelay() EXCLUSIVE_LOCKS_REQUIRED(!m_tx_relay_mutex)
|
||||
{
|
||||
LOCK(m_tx_relay_mutex);
|
||||
Assume(!m_tx_relay);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue