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 wallet locking management goroutine with mutexes. #1451

Merged
merged 1 commit into from
May 9, 2019

Conversation

jrick
Copy link
Member

@jrick jrick commented May 8, 2019

This change simplifies the management of the wallet's locked and unlocked states
when multiple concurrent requests may lock, unlock, or change the passphrase.
It also increases concurrent use of the unlocked wallet as requests to call
unlock with a valid passphrase do not block on current operations which make use
of the unlocked wallet.

The Start/Stop/WaitForShutdown methods are no longer necessary following this
change and have been deprecated.

Closes #1178.

This change simplifies the management of the wallet's locked and unlocked states
when multiple concurrent requests may lock, unlock, or change the passphrase.
It also increases concurrent use of the unlocked wallet as requests to call
unlock with a valid passphrase do not block on current operations which make use
of the unlocked wallet.

The Start/Stop/WaitForShutdown methods are no longer necessary following this
change and have been deprecated.
@jrick jrick merged commit f2dc53f into decred:master May 9, 2019
@jrick jrick deleted the lockingmutex branch May 9, 2019 16:10
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.

Remove Start/Stop/WaitForShutdown methods of wallet.Wallet
2 participants