Runtime things furthermore

This commit is contained in:
Nadja Reitzenstein 2022-06-24 12:24:29 +02:00
parent 77e0935945
commit 57fb279092
2 changed files with 3 additions and 3 deletions

View File

@ -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]

View File

@ -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,
}
}