]> git.bitcoin.ninja Git - rust-lightning/commit
Add a BIG lock to ChannelManager
authorMatt Corallo <git@bluematt.me>
Sat, 20 Oct 2018 22:46:03 +0000 (18:46 -0400)
committerMatt Corallo <git@bluematt.me>
Sat, 27 Oct 2018 13:42:04 +0000 (09:42 -0400)
commit74cec623fd1d6a505f41cdb8cc6479e6f6fae8ab
treef838233d799ea5b5fd17d18b2c64bfee208748bd
parent47fe673c57ba09fc1aa5122f438d3228fbf24290
Add a BIG lock to ChannelManager

During normal operation we should never need to take this, so we
use a RwLock that allows normal parallelism until we want to
serialize out our ChannelManager, at which point we can take the
write-mode lock.
src/ln/channelmanager.rs