DEENESPTFRRUARHIKOZHNL

classe ara::core::Promise

[SWS_CORE_00340] Upstream: RS_AP_00130

template <typename T, typename E = ErrorCode> class Promise final {...};

ara::core specific variant of std::promise class The implementation shall flag the condition E!=ara::core::ErrorCode as a compile error.

Header-Datei#include "ara/core/future.h"
Forwarding-Header#include "ara/core/core_fwd.h"
Scopenamespace ara::core

Guide utilisateurGÉNÉRÉ PAR IA

Fournit un canal asynchrone pour transmettre des valeurs ou des erreurs entre threads à un future associé.
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 5c323bf911df Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Fournit un canal asynchrone pour transmettre des valeurs ou des erreurs entre threads à un future associé.

La classe ara::core::Promise fait office de point de terminaison d'écriture asynchrone pour transférer des valeurs, des erreurs ou des résultats entre threads dans un état partagé [SWS_CORE_00341]. L'accès en lecture s'effectue via un Future récupérable exactement une seule fois, qui est libéré lors de la mise à disposition du résultat [SWS_CORE_00344]. Comme la classe n'est pas copiable, l'état reste strictement en possession exclusive via la sémantique de déplacement, une affectation multiple du résultat ou une récupération multiple du future conduisant à des violations standardisées.

Contexte

La classe ara::core::Promise représente la déclinaison spécifique à l'Adaptive Platform du concept std::promise issu du standard C++. Elle est définie dans l'en-tête ara/core/future.h en tant que template Promise<T, E = ErrorCode> et sert de point de terminaison d'écriture asynchrone d'un état partagé (shared state). Par ce canal, un producteur transmet entre threads soit une valeur de sortie calculée, soit une erreur, soit un ara::core::Result agrégé. Le côté récepteur correspondant accède au résultat via un ara::core::Future associé, qui est récupéré via la méthode d'instance get_future [SWS_CORE_00344]. À la différence du mécanisme standard C++, reposant principalement sur les exceptions, AUTOSAR Adaptive ancre le paradigme typé par les erreurs : si le type d'erreur E choisi est différent de ara::core::ErrorCode, la spécification force une erreur de compilation.

Cycle de vie

Une instance est régulièrement créée via le constructeur par défaut sans paramètre, qui se comporte comme le constructeur correspondant de std::promise, est sûr vis-à-vis des threads et établit un nouvel état partagé [SWS_CORE_00341]. Afin de garantir des rapports de possession univoques sur cet état, les opérations de copie sont totalement proscrites : le constructeur de copie [SWS_CORE_00350] ainsi que l'opérateur d'affectation par copie [SWS_CORE_00351] sont déclarés comme supprimés (delete).

La classe prend toutefois en charge la sémantique de déplacement (move). Le constructeur de déplacement prend en charge l'état partagé de l'instance source [SWS_CORE_00342]. Lors d'une affectation par déplacement, l'instance cible abandonne son état partagé précédent et prend en charge l'état de l'objet transmis de manière analogue à une opération d'échange [SWS_CORE_00343]. De plus, la méthode swap permet d'échanger l'état interne avec une autre instance [SWS_CORE_00352]. Lors de la destruction via le destructeur, un état partagé encore détenu est libéré ou quitté [SWS_CORE_00349]. Alors que le constructeur par défaut est conçu pour être sûr vis-à-vis des threads [SWS_CORE_00341], les opérations de déplacement, les affectations, le swap et la destruction ne sont pas sûrs vis-à-vis des threads ([SWS_CORE_00342], [SWS_CORE_00343], [SWS_CORE_00352], [SWS_CORE_00349]).

PromiseStates Init Created SharedStateInitialisiert Init->Created Promise() FutureRetrieved FutureAbgerufen Created->FutureRetrieved get_future() Ready SharedStateReady Created->Ready set_value() / SetError() / SetResult() NoState KeinSharedState Created->NoState Move / operator= Destroyed Beendet Created->Destroyed ~Promise() FutureRetrieved->Ready set_value() / SetError() / SetResult() FutureRetrieved->NoState Move / operator= FutureRetrieved->Destroyed ~Promise() Ready->NoState Move / operator= Ready->Destroyed ~Promise() NoState->Destroyed ~Promise()

Diagramme d'états : cycle de vie et transitions d'état de l'état partagé dans une instance de Promise. Sources : [SWS_CORE_00341], [SWS_CORE_00342], [SWS_CORE_00343], [SWS_CORE_00344], [SWS_CORE_00345], [SWS_CORE_00349], [SWS_CORE_00353], [SWS_CORE_00355]

Parcours d'utilisation

Un déroulement typique de mise à disposition comprend les étapes suivantes :

  1. Création : le producteur instancie un ara::core::Promise<T, E> [SWS_CORE_00341].
  2. Récupérer le future : avant le démarrage du traitement asynchrone, le producteur appelle get_future() [SWS_CORE_00344]. Comme un seul Future associé est autorisé par promise, cet appel ne doit être effectué qu'exactement une fois. Le Future renvoyé est transmis au thread consommateur.
  3. Définir le résultat : à l'issue de l'opération asynchrone, le producteur transfère le résultat dans l'état partagé et fait passer celui-ci à l'état ready. Des surcharges sûres vis-à-vis des threads sont disponibles pour les opérations de copie et de déplacement :
Mise à disposition asynchrone via Promise et FutureErzeugerPromiseSharedStateFutureVerbraucherPromise()Erzeuge Shared Stateget_future()Créer le Future avec shared stateTransmission du FuturealtErfolgsfall: Wert bereitstellenset_value(value)Speichere Wert, setze Zustand readyFehlerfall: Fehler meldenSetError(error)Speichere Error, setze Zustand readyResult-Fall: Resultat setzenSetResult(result)Speichere Result, setze Zustand readyErgebnis abfragenLese Zustand

Diagramme de séquence : séquence d'appels et de synchronisation entre producteur, promise, shared state et consommateur. Sources : [SWS_CORE_00341], [SWS_CORE_00344], [SWS_CORE_00345], [SWS_CORE_00353], [SWS_CORE_00355]

Scénarios d'erreur

La spécification définit des préconditions strictes pour toutes les interactions avec l'état partagé, dont le non-respect conduit à des violations standardisées (Violations) :

  • Récupération multiple du future : si get_future() est appelé plus d'une fois pour le même état partagé, la violation IsoStdFutureErrcFutureAlreadyRetrievedViolation survient [SWS_CORE_00344].
  • Shared state manquant : si l'instance appelée ne possède pas d'état partagé — par exemple après l'exécution d'une opération de déplacement —, get_future() conduit à IsoStdFutureErrcNoStateViolation [SWS_CORE_00344]. Dans ce cas, les méthodes set_value, SetError et SetResult déclenchent la violation PromiseNoSharedStateToSetViolation ([SWS_CORE_00345], [SWS_CORE_00353], [SWS_CORE_00355]).
  • État déjà satisfait : si l'état partagé a déjà été pourvu d'une valeur, d'une erreur ou d'un résultat, chaque nouvel appel de set_value ([SWS_CORE_00345], [SWS_CORE_00346]), SetError ([SWS_CORE_00353], [SWS_CORE_00354]) ou SetResult ([SWS_CORE_00355], [SWS_CORE_00356]) conduit à la violation IsoStdFutureErrcPromiseAlreadySatisfiedViolation.
  • Sécurité vis-à-vis des exceptions : les méthodes set_value, SetError et SetResult sont sécurisées vis-à-vis des exceptions sous condition (conditionally exception safe). Elles ne lèvent aucune exception pourvu que les constructeurs des types T et E soient déclarés comme nothrow ([SWS_CORE_00345], [SWS_CORE_00353], [SWS_CORE_00355]).

Interprétation : l'abandon de l'état partagé lors de la destruction de l'instance sans affectation préalable de valeur ([SWS_CORE_00349]) devrait, de manière analogue au comportement standard C++ de std::promise, conduire un Future associé à enregistrer un événement d'erreur correspondant lors d'une tentative de lecture. Question Q-fd013bb17a591af9 (ouverte)

Ce guide repose exclusivement sur les exigences de spécification d'AUTOSAR Adaptive (Release R25-11).

Carte des membres

Constructeurs et destructeur

2

Opérateurs

1

Diagramme de classes

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__core__Promise131 Promise + Promise() + operator=() + ~Promise() + SetError() + SetResult() + get_future() + set_value() + swap()

Vue détaillée

Sélectionnez une entrée dans le plan.

Constructeurs et destructeur

Promise fonction 3

Default constructor This function shall behave the same as the corresponding std::promise function. ≙ std::promise

Surcharges Promise 3
Promise () noexcept; SWS_CORE_00341
Promise (Promise &&other) noexcept; SWS_CORE_00342
Promise (const Promise &)=delete; SWS_CORE_00350
~Promise fonction

Destructor for Promise objects Abandons any shared state.

~Promise () noexcept;

Méthodes

get_future fonction

Return an associated Future with the same shared state as *this The returned Future is set as soon as this Promise receives the result, value, or an error. This fuction must only be called once as it is not allowed to have multiple Futures per Promise.

Future< T, E > get_future () noexcept;
set_value fonction 2

Copy a value into the shared state and make the shared state ready.

Surcharges set_value 2
void set_value (const T &value) noexcept(std::is_nothrow_copy_ constructible< T >::value); SWS_CORE_00345
void set_value (T &&value) noexcept(std::is_nothrow_move_ constructible< T >::value); SWS_CORE_00346
SetError fonction 2

Move an error into the shared state and make the shared state ready.

Surcharges SetError 2
void SetError (E &&error) noexcept(std::is_nothrow_move_constructible< E >::value); SWS_CORE_00353
void SetError (const E &error) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_00354
SetResult fonction 2

Copy a Result into the shared state and make the shared state ready.

Surcharges SetResult 2
void SetResult (const Result< T, E > &result) noexcept(std::is_ nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_00355
void SetResult (Result< T, E > &&result) noexcept(std::is_nothrow_ move_constructible< T >::value &&std::is_nothrow_move_constructible< E >::value); SWS_CORE_00356
swap fonction

Swap the contents of this instance with another one’s. This function shall behave the same as the corresponding std::promise function. ≙ std::promise

void swap (Promise &other) noexcept;

Opérateurs

operator= fonction 2

Move assignment Abandons any shared state and then as if Promise(std::move(other)).swap(*this). ≙ std::move

Surcharges = 2
Promise & operator= (Promise &&other) noexcept; SWS_CORE_00343
Promise & operator= (const Promise &)=delete; SWS_CORE_00351

Documentation des méthodes

fonction Promise [SWS_CORE_00341] Upstream: RS_AP_00130

Promise () noexcept;

Default constructor This function shall behave the same as the corresponding std::promise function.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_00341
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00341@rel:R25-11#d95d8b66
Content hash
d95d8b66
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00341
Status: valid/unmigrated Version: rel:R25-11#ad8790dc Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00341@rel:R25-11#ad8790dc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0986205c2026-09-30
  • R19-11rel:R19-11#becb2d122026-10-14
  • R20-11rel:R20-11#530577522026-10-14
  • R21-11rel:R21-11#9a9686d12026-10-14
  • R22-11rel:R22-11#eece9f122026-10-14
  • R23-11rel:R23-11#68a9155a2026-10-14
  • R24-11rel:R24-11#7a7170b92026-10-14
  • R25-11rel:R25-11#ad8790dc2026-10-14 active
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

fonction Promise [SWS_CORE_00342] Upstream: RS_AP_00130

Promise (Promise &&other) noexcept;

Move constructor This function shall behave the same as the corresponding std::promise function.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

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

Record
AUTOSAR/AP/record/SWS_CORE_00342
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00342@rel:R25-11#97410fc5
Content hash
97410fc5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00342
Status: valid/unmigrated Version: rel:R25-11#b87869d0 Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00342@rel:R25-11#b87869d0
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#48f770fd2026-09-30
  • R19-11rel:R19-11#47337e4f2026-10-14
  • R20-11rel:R20-11#7c95444f2026-10-14
  • R21-11rel:R21-11#e06b8a592026-10-14
  • R22-11rel:R22-11#d1f4110b2026-10-14
  • R23-11rel:R23-11#6d1133f82026-10-14
  • R24-11rel:R24-11#afc2a3c62026-10-14
  • R25-11rel:R25-11#b87869d02026-10-14 active
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

fonction Promise [SWS_CORE_00350] Upstream: RS_AP_00130

Promise (const Promise &)=delete;

Copy constructor shall be disabled.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise

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

Record
AUTOSAR/AP/record/SWS_CORE_00350
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00350@rel:R25-11#1cae989c
Content hash
1cae989c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00350
Status: valid/unmigrated Version: rel:R25-11#d2c392a4 Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00350@rel:R25-11#d2c392a4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#3a63a36d2026-09-30
  • R19-11rel:R19-11#e6d29cc42026-10-14
  • R20-11rel:R20-11#bd55f3592026-10-14
  • R21-11rel:R21-11#bd55f3592026-10-14
  • R22-11rel:R22-11#9f08870d2026-10-14
  • R23-11rel:R23-11#cd2c53b02026-10-14
  • R24-11rel:R24-11#d2c392a42026-10-14
  • R25-11rel:R25-11#d2c392a42026-10-14 active
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

fonction SetError [SWS_CORE_00353] Upstream: RS_AP_00130

void SetError (E &&error) noexcept(std::is_nothrow_move_constructible< E >::value);

Move an error into the shared state and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Parameter (in)

ParameterBeschreibung
errorthe error to store

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00353
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00353@rel:R25-11#e6396cd3
Content hash
e6396cd3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00353
Status: valid/unmigrated Version: rel:R25-11#bed318c8 Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00353@rel:R25-11#bed318c8
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4d6aa6342026-09-30
  • R19-11rel:R19-11#17d203aa2026-10-14
  • R20-11rel:R20-11#483431492026-10-14
  • R21-11rel:R21-11#d246c4f32026-10-14
  • R22-11rel:R22-11#4e87e6272026-10-14
  • R23-11rel:R23-11#8177c2a32026-10-14
  • R24-11rel:R24-11#3effc9532026-10-14
  • R25-11rel:R25-11#bed318c82026-10-14 active
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

fonction SetError [SWS_CORE_00354] Upstream: RS_AP_00130

void SetError (const E &error) noexcept(std::is_nothrow_copy_ constructible< E >::value);

Copy an error into the shared state and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Parameter (in)

ParameterBeschreibung
errorthe error to store

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00354
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00354@rel:R25-11#a40a6b3d
Content hash
a40a6b3d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00354
Status: valid/unmigrated Version: rel:R25-11#865b7aca Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00354@rel:R25-11#865b7aca
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4b69b7b22026-09-30
  • R19-11rel:R19-11#08af04582026-10-14
  • R20-11rel:R20-11#66d90e1c2026-10-14
  • R21-11rel:R21-11#ef5dc7082026-10-14
  • R22-11rel:R22-11#826b4e3c2026-10-14
  • R23-11rel:R23-11#3767dc562026-10-14
  • R24-11rel:R24-11#a3d044712026-10-14
  • R25-11rel:R25-11#865b7aca2026-10-14 active
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

fonction SetResult [SWS_CORE_00355] Upstream: RS_AP_00130

void SetResult (const Result< T, E > &result) noexcept(std::is_ nothrow_copy_constructible< T >::value &&std::is_nothrow_copy_ constructible< E >::value);

Copy a Result into the shared state and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Parameter (in)

ParameterBeschreibung
resultthe result to store

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00355
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00355@rel:R25-11#1e13b92d
Content hash
1e13b92d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00355
Status: valid/unmigrated Version: rel:R25-11#eb823c26 Versionshistorie & Revisions (1 transition, 7 revision)
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/SWS_CORE_00355@rel:R25-11#eb823c26
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#1c0f08392026-09-30
  • R20-11rel:R20-11#4c6f52702026-10-14
  • R21-11rel:R21-11#4c6f52702026-10-14
  • R22-11rel:R22-11#58e0871d2026-10-14
  • R23-11rel:R23-11#0c1607a72026-10-14
  • R24-11rel:R24-11#0b83bc582026-10-14
  • R25-11rel:R25-11#eb823c262026-10-14 active
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

fonction SetResult [SWS_CORE_00356] Upstream: RS_AP_00130

void SetResult (Result< T, E > &&result) noexcept(std::is_nothrow_ move_constructible< T >::value &&std::is_nothrow_move_constructible< E >::value);

Move a Result into the shared state and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Parameter (in)

ParameterBeschreibung
resultthe result to store

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00356
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00356@rel:R25-11#4021b218
Content hash
4021b218
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00356
Status: valid/unmigrated Version: rel:R25-11#445f8c93 Versionshistorie & Revisions (1 transition, 7 revision)
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/SWS_CORE_00356@rel:R25-11#445f8c93
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#cae957a92026-09-30
  • R20-11rel:R20-11#558a00112026-10-14
  • R21-11rel:R21-11#558a00112026-10-14
  • R22-11rel:R22-11#dbcdc7d52026-10-14
  • R23-11rel:R23-11#9e711ec62026-10-14
  • R24-11rel:R24-11#0194828a2026-10-14
  • R25-11rel:R25-11#445f8c932026-10-14 active
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

fonction get_future [SWS_CORE_00344] Upstream: RS_AP_00130

Future< T, E > get_future () noexcept;

Return an associated Future with the same shared state as *this The returned Future is set as soon as this Promise receives the result, value, or an error. This fuction must only be called once as it is not allowed to have multiple Futures per Promise.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Verletzungen (Violations)IsoStdFutureErrc- If the function is called more than once on the same shared FutureAlreadyRe- state. trievedViolation IsoStdFutureErrc- If *this has no shared state. NoStateViolation

Rückgabewert

TypBeschreibung
Future< T, E >a Future with the same shared state as *this

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_CORE_00344
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00344@rel:R25-11#95f855e1
Content hash
95f855e1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00344
Status: valid/unmigrated Version: rel:R25-11#9636ce04 Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00344@rel:R25-11#9636ce04
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f0a829512026-09-30
  • R19-11rel:R19-11#e89e1ade2026-10-14
  • R20-11rel:R20-11#4b3f3d5b2026-10-14
  • R21-11rel:R21-11#dc390e3a2026-10-14
  • R22-11rel:R22-11#d25873012026-10-14
  • R23-11rel:R23-11#616361012026-10-14
  • R24-11rel:R24-11#59190fca2026-10-14
  • R25-11rel:R25-11#9636ce042026-10-14 active
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

fonction operator= [SWS_CORE_00343] Upstream: RS_AP_00130

Promise & operator= (Promise &&other) noexcept;

Move assignment Abandons any shared state and then as if Promise(std::move(other)).swap(*this).

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
Promise &*this

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

Record
AUTOSAR/AP/record/SWS_CORE_00343
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00343@rel:R25-11#d0db1b16
Content hash
d0db1b16
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00343
Status: valid/unmigrated Version: rel:R25-11#65fdcb27 Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00343@rel:R25-11#65fdcb27
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2c46856d2026-09-30
  • R19-11rel:R19-11#dc654ee02026-10-14
  • R20-11rel:R20-11#f1806e3b2026-10-14
  • R21-11rel:R21-11#34acef442026-10-14
  • R22-11rel:R22-11#407a30d82026-10-14
  • R23-11rel:R23-11#10c10b722026-10-14
  • R24-11rel:R24-11#15d095072026-10-14
  • R25-11rel:R25-11#65fdcb272026-10-14 active
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

fonction operator= [SWS_CORE_00351] Upstream: RS_AP_00130

Promise & operator= (const Promise &)=delete;

Copy assignment operator shall be disabled.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise

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

Record
AUTOSAR/AP/record/SWS_CORE_00351
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00351@rel:R25-11#eee44ab4
Content hash
eee44ab4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00351
Status: valid/unmigrated Version: rel:R25-11#c5df3082 Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00351@rel:R25-11#c5df3082
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#9b9068f42026-09-30
  • R19-11rel:R19-11#6c16087a2026-10-14
  • R20-11rel:R20-11#02e45f892026-10-14
  • R21-11rel:R21-11#02e45f892026-10-14
  • R22-11rel:R22-11#8a967fd52026-10-14
  • R23-11rel:R23-11#b412d2772026-10-14
  • R24-11rel:R24-11#c5df30822026-10-14
  • R25-11rel:R25-11#c5df30822026-10-14 active
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

fonction set_value [SWS_CORE_00345] Upstream: RS_AP_00130

void set_value (const T &value) noexcept(std::is_nothrow_copy_ constructible< T >::value);

Copy a value into the shared state and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Parameter (in)

ParameterBeschreibung
valuethe value to store

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00345
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00345@rel:R25-11#61f534cf
Content hash
61f534cf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00345
Status: valid/unmigrated Version: rel:R25-11#6b282783 Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00345@rel:R25-11#6b282783
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f9783a292026-09-30
  • R19-11rel:R19-11#2c0ddcac2026-10-14
  • R20-11rel:R20-11#1095e01c2026-10-14
  • R21-11rel:R21-11#1095e01c2026-10-14
  • R22-11rel:R22-11#94a66b6c2026-10-14
  • R23-11rel:R23-11#49bb9caf2026-10-14
  • R24-11rel:R24-11#3a34547c2026-10-14
  • R25-11rel:R25-11#6b2827832026-10-14 active
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

fonction set_value [SWS_CORE_00346] Upstream: RS_AP_00130

void set_value (T &&value) noexcept(std::is_nothrow_move_ constructible< T >::value);

Move a value into the shared state and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitconditionally exception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)IsoStdFutureEr- If the shared state already has a stored value or error. rcPromiseAl- readySatisfiedVio- lation PromiseNoShared- If *this has no shared state. StateToSetViola- tion

Parameter (in)

ParameterBeschreibung
valuethe value to store

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00346
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00346@rel:R25-11#492e4360
Content hash
492e4360
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00346
Status: valid/unmigrated Version: rel:R25-11#56056ba3 Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00346@rel:R25-11#56056ba3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8b29c2042026-09-30
  • R19-11rel:R19-11#d1c271cd2026-10-14
  • R20-11rel:R20-11#2c1231622026-10-14
  • R21-11rel:R21-11#2c1231622026-10-14
  • R22-11rel:R22-11#6be6444f2026-10-14
  • R23-11rel:R23-11#7f5cd43e2026-10-14
  • R24-11rel:R24-11#cc28bc5f2026-10-14
  • R25-11rel:R25-11#56056ba32026-10-14 active
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

fonction swap [SWS_CORE_00352] Upstream: RS_AP_00130

void swap (Promise &other) noexcept;

Swap the contents of this instance with another one’s. This function shall behave the same as the corresponding std::promise function.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in/out)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_00352
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00352@rel:R25-11#a5aaf543
Content hash
a5aaf543
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00352
Status: valid/unmigrated Version: rel:R25-11#34c2a151 Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00352@rel:R25-11#34c2a151
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f15184862026-09-30
  • R19-11rel:R19-11#04fbb8542026-10-14
  • R20-11rel:R20-11#b552e9282026-10-14
  • R21-11rel:R21-11#b552e9282026-10-14
  • R22-11rel:R22-11#1e062be72026-10-14
  • R23-11rel:R23-11#9c97ab662026-10-14
  • R24-11rel:R24-11#4aff210a2026-10-14
  • R25-11rel:R25-11#34c2a1512026-10-14 active
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

fonction ~Promise [SWS_CORE_00349] Upstream: RS_AP_00130

~Promise () noexcept;

Destructor for Promise objects Abandons any shared state.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

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

Record
AUTOSAR/AP/record/SWS_CORE_00349
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00349@rel:R25-11#98de16f4
Content hash
98de16f4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00349
Status: valid/unmigrated Version: rel:R25-11#d3ab1bdc Versionshistorie & Revisions (1 transition, 8 revision)
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/SWS_CORE_00349@rel:R25-11#d3ab1bdc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#170408342026-09-30
  • R19-11rel:R19-11#d48e92272026-10-14
  • R20-11rel:R20-11#f8e702f92026-10-14
  • R21-11rel:R21-11#536b31e32026-10-14
  • R22-11rel:R22-11#0e8726472026-10-14
  • R23-11rel:R23-11#9b91cb7e2026-10-14
  • R24-11rel:R24-11#cea546db2026-10-14
  • R25-11rel:R25-11#d3ab1bdc2026-10-14 active
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