Skip to content
  • CrocdileChan's avatar
    use ThreadPool to execute spawn_worker(fn) (#3836) · b7627c4c
    CrocdileChan authored
    * use ThreadPool to spawn_worker()
    
    * use ThreadPool to implement spawn_worker(fn)
    
    * use ThreadPool to implement spawn_worker(f)
    
    * update [dependencies] threadpool and num_cpus version
    
    *  rm 'extern crate num_cpus'
    
    * cargo.lock update
    
    *  merge the newest cargo.lock
    
    * Update Cargo.lock
    
    * use Mutex to wrap OffchainWorkers.thread_pool
    
    * format use crate
    
    * use parking_lot::Mutex instead of std::sync::Mutex
    b7627c4c