it: test explicit sync
This commit is contained in:
parent
6448a14fb1
commit
3b0757ee53
22 changed files with 419 additions and 166 deletions
|
|
@ -52,6 +52,11 @@ impl SyncObj {
|
|||
importers: Default::default(),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(not(feature = "it"), allow(dead_code))]
|
||||
pub fn fd(&self) -> &Rc<OwnedFd> {
|
||||
&self.fd
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for SyncObj {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ pub trait SyncObjWaiter {
|
|||
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
|
||||
struct JobId(u64);
|
||||
|
||||
#[must_use]
|
||||
pub struct WaitForSyncObjHandle {
|
||||
inner: Rc<Inner>,
|
||||
id: JobId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue