From 57fb279092fe6b6eee89952be8398e594f8752a4 Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Fri, 24 Jun 2022 12:24:29 +0200 Subject: [PATCH] Runtime things furthermore --- runtime/lightproc/src/proc_data.rs | 2 +- runtime/lightproc/src/proc_handle.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/lightproc/src/proc_data.rs b/runtime/lightproc/src/proc_data.rs index 138fc2c..d6d0e9c 100644 --- a/runtime/lightproc/src/proc_data.rs +++ b/runtime/lightproc/src/proc_data.rs @@ -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] diff --git a/runtime/lightproc/src/proc_handle.rs b/runtime/lightproc/src/proc_handle.rs index 124c5ca..f04fef0 100644 --- a/runtime/lightproc/src/proc_handle.rs +++ b/runtime/lightproc/src/proc_handle.rs @@ -25,7 +25,7 @@ pub struct ProcHandle { /// 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, + pub(crate) marker: PhantomData, } unsafe impl Send for ProcHandle {} @@ -37,7 +37,7 @@ impl ProcHandle { pub(crate) fn new(raw_proc: NonNull<()>) -> Self { Self { raw_proc, - result: MaybeUninit::uninit(), + marker: PhantomData, } }