Implement len caching for parking_lot RwLock (#10032)

- Refactor (and rename crate) and implement RwLock len cache.

- improve docs

- update ethcore verification queue to new version

- Implement Default, From,  also derive Debug

- update: parking_lot to 0.7
This commit is contained in:
mattrutherford
2018-12-13 18:07:56 +00:00
committed by GitHub
parent 1a2fc03083
commit 60718225ac
8 changed files with 313 additions and 36 deletions

View File

@@ -112,7 +112,7 @@ extern crate journaldb;
extern crate serde;
#[cfg(any(test, feature = "json-tests", feature = "test-helpers"))]
extern crate tempdir;
extern crate len_caching_mutex;
extern crate len_caching_lock;
#[cfg(any(target_os = "linux", target_os = "macos", target_os = "windows", target_os = "android"))]
extern crate hardware_wallet;

View File

@@ -29,7 +29,7 @@ use io::*;
use error::{BlockError, ImportErrorKind, ErrorKind, Error};
use engines::EthEngine;
use client::ClientIoMessage;
use len_caching_mutex::LenCachingMutex;
use len_caching_lock::LenCachingMutex;
use self::kind::{BlockLike, Kind};