Make PenderContext actually pointer-size

This commit is contained in:
Dániel Buga 2023-08-14 15:45:43 +02:00
parent 986a63ebb8
commit 3a51e2d9ca

View File

@ -294,7 +294,7 @@ impl<F: Future + 'static, const N: usize> TaskPool<F, N> {
/// Context given to the thread-mode executor's pender. /// Context given to the thread-mode executor's pender.
#[repr(transparent)] #[repr(transparent)]
#[derive(Clone, Copy)] #[derive(Clone, Copy)]
pub struct PenderContext(usize); pub struct PenderContext(*mut ());
/// Platform/architecture-specific action executed when an executor has pending work. /// Platform/architecture-specific action executed when an executor has pending work.
/// ///