autocommit 2022-03-13 22:20:31 CET
This commit is contained in:
parent
156bd5b042
commit
a15a02a95c
38 changed files with 63 additions and 66 deletions
|
|
@ -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.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue