eventReleaseAllResources

Class: matlab.DiscreteEventSystem
Package: matlab

Create an event to release all resources acquired by an entity

Syntax

event = eventReleaseAllResources(tag)

Description

event = eventReleaseAllResources(tag) creates an event to release all the resources acquired by an entity.

Input Arguments

expand all

Custom tag of this entity resource release event. You can use the tag to identify an event when multiple events act on the same entity. For more information about managing multiple events, see Custom Entity Storage Block with Multiple Timer Events.

Output Arguments

expand all

Event that releases all resources from the entity.

Examples

On entity entry to a storage element, an entity releases all of the previously acquired resources. The tag of this resource acquisition event is ReleaseAll.

function [entity, event] = entry(obj, storage, entity, source)
      event = obj.eventReleaseAllResources('releaseAll');
end

Introduced in R2019a