[thin_check (rust)] Move mutex inside IoEngines.

Makes it easier to share an engine between different threads.
This commit is contained in:
Joe Thornber
2020-07-30 08:47:16 +01:00
parent 4f120911d2
commit 8146fba9d2
2 changed files with 56 additions and 40 deletions

View File

@@ -10,7 +10,7 @@ use std::thread::{self, spawn};
use std::time::{Duration, Instant};
use threadpool::ThreadPool;
use crate::block_manager::{AsyncIoEngine, Block, IoEngine, SyncIoEngine, BLOCK_SIZE};
use crate::block_manager::{AsyncIoEngine, Block, IoEngine, BLOCK_SIZE};
use crate::checksum;
use crate::thin::superblock::*;