Skip to content
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

Replace boost::reverse_lock with our own #6630

Merged
merged 1 commit into from Sep 3, 2015
Merged

Replace boost::reverse_lock with our own #6630

merged 1 commit into from Sep 3, 2015

Conversation

casey
Copy link
Contributor

@casey casey commented Sep 3, 2015

See #6608 for discussion.

This removes boost::reverse_lock so that we don't depend on boost 1.50, and replaces it with our own implementation.

This implementation is stricter than boost::reverse_lock. Reverse locking an unlocked lock, and re-locking a lock while a reverse_lock is active are both errors.

@sipa
Copy link
Member

sipa commented Sep 3, 2015

ACK if Travis is happy.

@casey
Copy link
Contributor Author

casey commented Sep 3, 2015

Travis is unhappy; I think I neglected to add the new file to the makefile. Fixing it now.

@paveljanik
Copy link
Contributor

ACK after minor nits.

reverse_lock& operator=(reverse_lock const&);

Lock& lock;
//mutex_type* mutex;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant commented line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@laanwj
Copy link
Member

laanwj commented Sep 3, 2015

utACK, thanks for adding tests!

@gavinandresen
Copy link
Contributor

ACK, works nicely on my OSX machine.

@laanwj laanwj merged commit 86270c8 into bitcoin:master Sep 3, 2015
laanwj added a commit that referenced this pull request Sep 3, 2015
86270c8 Replace boost::reverse_lock with our own. (Casey Rodarmor)
@dcousens
Copy link
Contributor

dcousens commented Sep 3, 2015

Great work @casey 👍 , utACK

@jonasschnelli
Copy link
Contributor

PostMerge ACK.
@casey: Nice 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.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants