1
0
Fork 0
forked from wry/wry

autocommit 2022-03-13 22:20:31 CET

This commit is contained in:
Julian Orth 2022-03-13 22:20:31 +01:00
parent 156bd5b042
commit a15a02a95c
38 changed files with 63 additions and 66 deletions

View file

@ -1,7 +1,7 @@
use parking_lot::{Condvar, Mutex};
use std::mem;
use std::rc::Rc;
use std::sync::Arc;
use parking_lot::{Condvar, Mutex};
use uapi::OwnedFd;
pub struct FdCloser {
@ -38,7 +38,7 @@ impl FdCloser {
Ok(fd) => {
self.fds.lock().push(fd);
self.cv.notify_all();
},
}
Err(_e) => {
log::warn!("Could not close file descriptor in separate thread. There are still references.");
}

View file

@ -7,6 +7,7 @@ pub mod clonecell;
pub mod copyhashmap;
pub mod debug_fn;
pub mod errorfmt;
pub mod fdcloser;
pub mod hex;
pub mod linkedlist;
pub mod nonblock;
@ -22,4 +23,3 @@ pub mod tri;
pub mod vasprintf;
pub mod vec_ext;
pub mod vecstorage;
pub mod fdcloser;