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