mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-25 13:13:48 +01:00
Runtime things furthermore
This commit is contained in:
parent
77e0935945
commit
57fb279092
@ -113,7 +113,7 @@ impl ProcData {
|
||||
}
|
||||
}
|
||||
|
||||
/// Notifies the proc blocked on the proc.
|
||||
/// Notifies the proc blocked on this proc, if any.
|
||||
///
|
||||
/// If there is a registered waker, it will be removed from the pdata and woken.
|
||||
#[inline]
|
||||
|
@ -25,7 +25,7 @@ pub struct ProcHandle<R> {
|
||||
/// A marker capturing the generic type `R`.
|
||||
// TODO: Instead of writing the future output to the RawProc on heap, put it in the handle
|
||||
// (if still available).
|
||||
pub(crate) result: MaybeUninit<R>,
|
||||
pub(crate) marker: PhantomData<R>,
|
||||
}
|
||||
|
||||
unsafe impl<R: Send> Send for ProcHandle<R> {}
|
||||
@ -37,7 +37,7 @@ impl<R> ProcHandle<R> {
|
||||
pub(crate) fn new(raw_proc: NonNull<()>) -> Self {
|
||||
Self {
|
||||
raw_proc,
|
||||
result: MaybeUninit::uninit(),
|
||||
marker: PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user