rust/hedgewars-server/src/server/io.rs
changeset 16018 fb389df02e3e
parent 15968 ce47259d5c86
equal deleted inserted replaced
16017:0b2e0a7d0431 16018:fb389df02e3e
    22 impl IoThread {
    22 impl IoThread {
    23     pub fn new(waker: Waker) -> Self {
    23     pub fn new(waker: Waker) -> Self {
    24         let (core_tx, io_rx) = mpsc::channel();
    24         let (core_tx, io_rx) = mpsc::channel();
    25         let (io_tx, core_rx) = mpsc::channel();
    25         let (io_tx, core_rx) = mpsc::channel();
    26 
    26 
    27         todo!("convert into an IO task");
    27         //todo!("convert into an IO task");
    28 
    28 
    29         /*let mut db = Database::new("localhost");
    29         /*let mut db = Database::new("localhost");
    30 
    30 
    31         thread::spawn(move || {
    31         thread::spawn(move || {
    32             while let Ok((request_id, task)) = io_rx.recv() {
    32             while let Ok((request_id, task)) = io_rx.recv() {