trace_recorder_parser/streaming/event/
task_notify.rs

1use crate::streaming::event::EventCount;
2use crate::time::{Ticks, Timestamp};
3use crate::types::{ObjectHandle, TaskName};
4use derive_more::Display;
5
6#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Display)]
7#[display(fmt = "[{timestamp}]:{handle}")]
8pub struct TaskNotifyEvent {
9    pub event_count: EventCount,
10    pub timestamp: Timestamp,
11
12    /// Task-to-notify for TaskNotify and TaskNotifyFromIsr
13    /// Current task for TaskNotifyWait and TaskNotifyWaitBlock
14    pub handle: ObjectHandle,
15    pub task_name: Option<TaskName>,
16    pub ticks_to_wait: Option<Ticks>,
17}
18
19pub type TaskNotifyFromIsrEvent = TaskNotifyEvent;
20pub type TaskNotifyWaitEvent = TaskNotifyEvent;
21pub type TaskNotifyWaitBlockEvent = TaskNotifyEvent;