Function simics::api::base::event::_event_cancel_step

source ·
fn _event_cancel_step<F>(
    clock: *mut ConfObject,
    event: *mut EventClass,
    obj: *mut ConfObject,
    filter: Option<F>,
)
where F: Fn(*mut c_void) -> i32 + 'static,
Expand description

All unexpired evclass events posted for obj on clock for which pred returns nonzero will be cancelled and their destructor methods (if any) called. pred will be called with the data associated with the event and the supplied match_data. If pred is null (None in Python), all evclass events for obj on clock will be cancelled.

There are separate calls for events posted at a point in time (cycle or seconds) and on a specific step.

§Arguments

  • clock - The clock the event to cancel was posted on
  • event - The event to cancel
  • obj - The object the event was posted on
  • filter - An optional closure to filter events that returns nonzero if an event should be canceled or zero if it should not be canceled. If not provided, all events for class event will be canceled.

§Context

Cell Context