Open
Description
Pure for learning purposes, why does RawTask
use raw pointers for output
, header
, etc? Is it mostly for performance reason?
/// Raw pointers to the fields inside a task.
pub(crate) struct RawTask<F, R, S, T> {
/// The task header.
pub(crate) header: *const Header,
/// The schedule function.
pub(crate) schedule: *const S,
/// The tag inside the task.
pub(crate) tag: *mut T,
/// The future.
pub(crate) future: *mut F,
/// The output of the future.
pub(crate) output: *mut R,
}
Metadata
Metadata
Assignees
Labels
No labels