Skip to content

Conversation

@cgaebel
Copy link

@cgaebel cgaebel commented Nov 2, 2011

Instead of using an ugly loop hack that swallows break and continue, I have replaced it with a simple if statement.

Please comment and/or apply!

@laanwj
Copy link
Member

laanwj commented Nov 2, 2011

I like this; it uses the proper c++ idiom (RAII) which is more readable and potentially more robust.

Can you add testcase/unittest?

@cgaebel
Copy link
Author

cgaebel commented Nov 2, 2011

Done. Thanks.

@gavinandresen
Copy link
Contributor

ACK

@TheBlueMatt
Copy link
Contributor

It would be nice to test that Critical section code actually works by spawning threads and testing locks in the test suite.

@gavinandresen
Copy link
Contributor

I'm going to merge this early-- writing multithreaded unit tests would be spiffy, but second-best is to merge early and get lots of testing.

gavinandresen added a commit that referenced this pull request Nov 21, 2011
Cleaned up critical section code.
@gavinandresen gavinandresen merged commit 42eb76a into bitcoin:master Nov 21, 2011
coblee referenced this pull request in litecoin-project/litecoin Jul 17, 2012
Cleaned up critical section code.
ptschip pushed a commit to ptschip/bitcoin that referenced this pull request Aug 19, 2017
kallewoof pushed a commit to kallewoof/bitcoin that referenced this pull request Oct 4, 2019
… RPC

b919ca3 fedpeg test makes sure claim_script is wpkh (Gregory Sanders)
a9cbe55 refactor getpeginaddress to not call getnewaddress RPC (Gregory Sanders)
cdb33e5 createrawpegin should look for wpkh addresses, not nested (Gregory Sanders)

Pull request description:

  resolves ElementsProject/elements#599

Tree-SHA512: 37fbcb865df78337827b44fed00e54fcd5c44eea57bf48d66416be00c915129dcc5f5fda613d9f64fdb325303c24fab4a1e8b1c96fd54ee2dcaac90ba841bfb7
rajarshimaitra pushed a commit to rajarshimaitra/bitcoin that referenced this pull request Aug 5, 2021
node_operations.asciidoc: -m is needed for 'useradd' to work
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants