openethereum/ethcore/src/verification/queue
mattrutherford ec886ddefb
LenCachingMutex (#9988)
New util LenCachingMutex can be used in place of a Mutex, when working
with collections, or other types with a len() method. When
the Guard is dropped, the value returned from len() is stored
into an AtomicUsize and can be queried using load_len() without
needing to lock the Mutex. Implementations for ```Vec``` and
```VecDeque```.

Now used in [Verification](4ded4181a6/ethcore/src/verification/queue/mod.rs (L196)) so that calls to ```VerificationQueue.queue_info()```
no longer require locks.
2018-12-04 14:30:52 +00:00
..
kind.rs Skip seal fields count check when --no-seal-check is used (#9757) 2018-10-16 18:24:47 +08:00
mod.rs LenCachingMutex (#9988) 2018-12-04 14:30:52 +00:00