DEENESPTFRRUARHIKOZHNL

clase ara::shwa::Event

Diese Seite wurde vollständig KI-generiert auf Basis von SWS Safe Hardware Acceleration (R25-11) — kein offizieller AUTOSAR-Text und keine automatisch extrahierte API-Seite wie die übrigen Module. Als Interpretation gekennzeichnete Aussagen sind Schlussfolgerungen aus den Quellen.

[AP_SWS_SHWA_00601] texto aún no importado Upstream: RS_SHWA_00016

class Event final {...};

Die Spezifikation definiert diesen Klassentyp mit der gezeigten Schnittstelle.

Header-Datei#include "ara/shwa/event.h"
Scopenamespace ara::shwa

Guía del usuarioGENERADO POR IA

Sincroniza aplicaciones respecto a la finalización de tareas asociadas o dependientes del acelerador de hardware.
GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: ca0070588ff8 Procedencia Preguntas abiertas (2)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Sincroniza aplicaciones respecto a la finalización de tareas asociadas o dependientes del acelerador de hardware.

La clase ara::shwa::Event sirve para la sincronización con la finalización de tareas del acelerador de hardware en el módulo shwa [AP_SWS_SHWA_00604]. Tras la creación segura para subprocesos mediante el método de fábrica a través de Create() [AP_SWS_SHWA_00602], la espera se realiza de forma bloqueante o limitada en el tiempo mediante métodos no seguros para subprocesos como Wait() o WaitFor(). Si se produce un error durante la ejecución de la tarea, no se aplica ninguna semántica de reversión (rollback), por lo que los datos utilizados se consideran modificados involuntariamente [AP_SWS_SHWA_00604].

Contexto

La clase ara::shwa::Event actúa dentro del módulo shwa como elemento central de sincronización para tareas del acelerador de hardware. Su responsabilidad principal consiste en sincronizar con la finalización de tareas asociadas o dependientes [AP_SWS_SHWA_00604]. Las partes que interactúan son subprocesos del lado del llamador y componentes de aplicación que coordinan operaciones asíncronas del acelerador. Interpretación: Dado que la interfaz sincroniza finalizaciones de tareas, es probable que un único objeto Event encapsule las señales de ejecución y sincronización de una ejecución de hardware específica. Pregunta Q-b4aa1debd356c45c (abierta)

Ciclo de vida

Las instancias de ara::shwa::Event se crean a través del método de fábrica estático Create(), que devuelve un ara::core::Result<Event> [AP_SWS_SHWA_00602]. Esta ruta de creación es segura para subprocesos (thread-safe) y no lanza excepciones (noexcept, exception safe) [AP_SWS_SHWA_00602]. Tras la creación, el objeto se encuentra en estado operativo activo y permite consultar dependencias así como operaciones de sincronización.

En cuanto a la concurrencia, los componentes de aplicación deben tener en cuenta que todos los métodos de instancia, así como las llamadas de sincronización, están especificados explícitamente como no seguros para subprocesos (not thread-safe) [AP_SWS_SHWA_00603], [AP_SWS_SHWA_00604], [AP_SWS_SHWA_00605], [AP_SWS_SHWA_00606]. Por lo tanto, el acceso simultáneo de varios subprocesos a la misma instancia de evento o a listas de eventos compartidas requiere sincronización externa. La destrucción del objeto se produce a través de la vida útil regular de C++; en la interfaz no existe un método explícito de cierre o liberación.

Ruta de uso

El flujo regular de sincronización se divide en la creación del objeto, la inspección opcional de dependencias y la espera propiamente dicha de la ejecución:

  1. Instanciación: El llamador invoca Create() y comprueba el éxito del ara::core::Result obtenido [AP_SWS_SHWA_00602].
  2. Consultar dependencias: A través de GetWaitList() se puede leer una lista de eventos dependientes como ara::core::Vector<Event> [AP_SWS_SHWA_00603]. Se asume que GetWaitList() actúa como inspección de tareas previas de cuya finalización depende internamente el evento. Pregunta Q-ed01dc595c23ce28 (abierta)
  3. Ejecutar sincronización: Para la sincronización hay tres variantes disponibles:
    • La espera basada en instancia mediante Wait() se bloquea hasta la finalización de las tareas asociadas al evento [AP_SWS_SHWA_00604].
    • La espera estática de un grupo de eventos mediante Wait(eventList) sincroniza con una colección completa de objetos Event [AP_SWS_SHWA_00605].
    • La espera estática con límite de tiempo mediante WaitFor(ms) limita la espera a una duración definida en milisegundos [AP_SWS_SHWA_00606].
Flujo de sincronización de eventosAplicaciónara::shwa::EventUse Case: InstanziierungCreate()ara::core::Result<Event>Use Case: Comprobación de dependencias (opcional)GetWaitList()ara::core::Result<Vector<Event>>Use Case: Synchronisationaltespera bloqueante de la instanciaWait()ara::core::Result<void>zeitbegrenztes WartenWaitFor(ms)ara::core::Result<void>

Diagrama de secuencia: Flujo típico desde la creación, pasando por la consulta de dependencias, hasta la sincronización. Fuentes: [AP_SWS_SHWA_00602], [AP_SWS_SHWA_00603], [AP_SWS_SHWA_00604], [AP_SWS_SHWA_00606]

Escenarios de error

Todos los métodos están declarados con noexcept y notifican estados de error a través del tipo de retorno ara::core::Result. En este caso se presentan códigos de error específicos:

Se requiere especial atención a la semántica de reversión: Para las operaciones de espera Wait() y Wait(eventList) se aplica no_rollback_semantics [AP_SWS_SHWA_00604], [AP_SWS_SHWA_00605]. Si se produce un error durante la ejecución de la tarea, los datos utilizados por la tarea fallida deben considerarse modificados involuntariamente [AP_SWS_SHWA_00604], [AP_SWS_SHWA_00605], [AP_SWS_SHWA_00606].

Esta guía se basa exclusivamente en la especificación del módulo shwa para la versión R25-11.

Mapa de miembros

Vista de detalle

Selecciona una entrada en el índice.

Métodos

Create función

Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.

static ara::core::Result< Event > Create () noexcept;
GetWaitList función

Liest die durch die Signatur bezeichnete Information oder Eigenschaft aus dem Objekt.

ara::core::Result< ara::core::Vector< Event > > GetWaitList () noexcept;
Wait función 2

Synchronisiert gemäß der Signatur auf den Abschluss assoziierter oder abhängiger Aufgaben; die zeitbegrenzte Variante begrenzt das Warten.

Sobrecargas Wait 2
static ara::core::Result< void > Wait (const ara::core::Vector< Event > &eventList) noexcept; AP_SWS_SHWA_00605
ara::core::Result< void > Wait () noexcept; AP_SWS_SHWA_00604
WaitFor función

Synchronisiert gemäß der Signatur auf den Abschluss assoziierter oder abhängiger Aufgaben; die zeitbegrenzte Variante begrenzt das Warten.

static ara::core::Result< void > WaitFor (const size_t ms) noexcept;

Detalles

función Create [AP_SWS_SHWA_00602] Upstream: RS_SHWA_00007, RS_SHWA_00016

static ara::core::Result< Event > Create () noexcept;

Erzeugt beziehungsweise liefert das in der Signatur beschriebene Objekt oder Ergebnis über den angegebenen Factory-Pfad.

Scopeclass ara::shwa::Event
Thread Safetythread-safe rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::k Runtime General runtime error

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00602
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00602@rel:R25-11#85106aef
Content hash
85106aef
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00602
Status: valid/unmigrated Version: rel:R25-11#257b2cab Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/AP_SWS_SHWA_00602@rel:R25-11#257b2cab
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función GetWaitList [AP_SWS_SHWA_00603] Upstream: RS_SHWA_00007, RS_SHWA_00016

ara::core::Result< ara::core::Vector< Event > > GetWaitList () noexcept;

Liest die durch die Signatur bezeichnete Information oder Eigenschaft aus dem Objekt.

Scopeclass ara::shwa::Event
Thread Safetynot thread-safe rollback_semantics ShwaErrorCode::k Runtime General runtime error rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::kEvent InvalidOperation Error related to events (e.g., invalid wait on event)

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00603
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00603@rel:R25-11#385195b3
Content hash
385195b3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00603
Status: valid/unmigrated Version: rel:R25-11#3d013547 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/AP_SWS_SHWA_00603@rel:R25-11#3d013547
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función Wait [AP_SWS_SHWA_00605] Upstream: RS_SHWA_00007, RS_SHWA_00016

static ara::core::Result< void > Wait (const ara::core::Vector< Event > &eventList) noexcept;

Synchronisiert gemäß der Signatur auf den Abschluss assoziierter oder abhängiger Aufgaben; die zeitbegrenzte Variante begrenzt das Warten.

Scopeclass ara::shwa::Event
Thread Safetynot thread-safe no_rollback_semantics ShwaErrorCode::k Runtime General runtime error. The data used within failed task execution should be considered as changed in unintended way no_rollback_semantics ShwaErrorCode::kTask ExecutionFailure Error during task execution. The data used within failed task execution should be considered as changed in unintended way no_rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::kEvent InvalidOperation Error related to events (e.g., invalid wait on event)

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00605
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00605@rel:R25-11#54bdfc5d
Content hash
54bdfc5d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00605
Status: valid/unmigrated Version: rel:R25-11#ab1e1fa9 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/AP_SWS_SHWA_00605@rel:R25-11#ab1e1fa9
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función Wait [AP_SWS_SHWA_00604] Upstream: RS_SHWA_00007, RS_SHWA_00016

ara::core::Result< void > Wait () noexcept;

Synchronisiert gemäß der Signatur auf den Abschluss assoziierter oder abhängiger Aufgaben; die zeitbegrenzte Variante begrenzt das Warten.

Scopeclass ara::shwa::Event
Thread Safetynot thread-safe no_rollback_semantics ShwaErrorCode::k Runtime General runtime error. The data used within failed task execution should be considered as changed in unintended way no_rollback_semantics ShwaErrorCode::kTask ExecutionFailure Error during task execution. The data used within failed task execution should be considered as changed in unintended way no_rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::kEvent InvalidOperation Error related to events (e.g., invalid wait on event)

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00604
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00604@rel:R25-11#dccf1016
Content hash
dccf1016
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00604
Status: valid/unmigrated Version: rel:R25-11#52685e47 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/AP_SWS_SHWA_00604@rel:R25-11#52685e47
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función WaitFor [AP_SWS_SHWA_00606] Upstream: RS_SHWA_00005, RS_SHWA_00007, RS_SHWA_00016

static ara::core::Result< void > WaitFor (const size_t ms) noexcept;

Synchronisiert gemäß der Signatur auf den Abschluss assoziierter oder abhängiger Aufgaben; die zeitbegrenzte Variante begrenzt das Warten.

Scopeclass ara::shwa::Event
Thread Safetynot thread-safe rollback_semantics ShwaErrorCode::k Runtime General runtime error. The data used within failed task execution should be considered as changed in unintended way no_rollback_semantics
Exception Safetyexception safe
ErrorsShwaErrorCode::kEvent InvalidOperation Error related to events (e.g., invalid wait on event) no_rollback_semantics ShwaErrorCode::kTask ExecutionFailure Error during task execution. The data used within failed task execution should be considered as changed in unintended way no_rollback_semantics ShwaErrorCode::kTimed Out Task execution timed-out. The data used within failed task execution should be considered as changed in unintended way

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_SHWA_00606
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_00606@rel:R25-11#c8c66056
Content hash
c8c66056
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_00606
Status: valid/unmigrated Version: rel:R25-11#2301dadd Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/AP_SWS_SHWA_00606@rel:R25-11#2301dadd
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill