8000 [Cleanup] Thread-safety-analysis warnings by lyricidal · Pull Request #333 · PRCYCoin/PRCYCoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Cleanup] Thread-safety-analysis warnings #333

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

Merged
merged 1 commit into from
Jan 13, 2023
Merged

Conversation

lyricidal
Copy link

More from compiling on macOS, turning on -Wthread-safety-analysis shows a number of compiler warnings with c++11 for acquiring mutexes that are already held.

This cleans up those warnings.

wallet/wallet.cpp:6273:21: warning: acquiring mutex 'cs_wallet' that is already held [-Wthread-safety-analysis] LOCK(cs_wallet);

rpc/rawtransaction.cpp:98:21: warning: acquiring mutex 'pwalletMain->cs_wallet' that is already held [-Wthread-safety-analysis] LOCK(pwalletMain->cs_wallet);

turning on `-Wthread-safety-analysis` shows a number of compiler warnings
with c++11 for acquiring mutexes that are already held.

This cleans up those warnings.
@lyricidal lyricidal merged commit 47222c1 into develop Jan 13, 2023
@lyricidal lyricidal deleted the thread-safety-analysis branch January 13, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0