convert std::sync::mpsc to crossbeam_channel (#22264)

This commit is contained in:
Jeff Biseda
2022-01-11 02:44:46 -08:00
committed by GitHub
parent 3c44d405c7
commit 8b66625c95
81 changed files with 313 additions and 346 deletions

View File

@@ -10,6 +10,7 @@ documentation = "https://docs.rs/solana-poh"
edition = "2021"
[dependencies]
crossbeam-channel = "0.5"
dlopen = "0.1.8"
dlopen_derive = "0.1.4"
log = "0.4.11"

View File

@@ -4,6 +4,7 @@
//! represents an approximate amount of time since the last Entry was created.
use {
crate::poh::Poh,
crossbeam_channel::{Receiver, Sender},
dlopen::symbor::{Container, SymBorApi, Symbol},
dlopen_derive::SymBorApi,
log::*,
@@ -34,10 +35,7 @@ use {
cell::RefCell,
cmp,
ffi::OsStr,
sync::{
mpsc::{Receiver, Sender},
Arc, Mutex, Once,
},
sync::{Arc, Mutex, Once},
thread::{self, JoinHandle},
time::Instant,
},