DEENESPTFRRUARHIKOZHNL

classe ara::core::Promise< void, E >

[SWS_CORE_06340] Upstream: RS_AP_00130

template <typename E> class Promise< void, E > final {...};

Specialization of class Promise for void values 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

Permet la fourniture asynchrone d'un résultat void ou d'une erreur à un objet « future » lié.
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 5c77833bef95 Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Permet la fourniture asynchrone d'un résultat void ou d'une erreur à un objet « future » lié.

La spécialisation ara::core::Promise< void, E > sert de point de terminaison producteur asynchrone pour signaler l'achèvement d'une opération sans valeur de retour ou pour transmettre une erreur ([SWS_CORE_06341]). Après l'instanciation, le Future associé pour le consommateur est récupéré exactement une fois via get_future() ([SWS_CORE_06344]). La mise à disposition s'effectue de manière thread-safe par set_value(), SetError() ou SetResult(), ce qui marque l'état partagé comme prêt. La classe possédant une sémantique de déplacement pur, des définitions multiples ou l'absence d'états partagés conduisent à des violations spécifiées.

Contexte

La classe ara::core::Promise< void, E > représente une spécialisation de modèle pour les processus asynchrones sans valeur de données utiles (type de retour void). Elle constitue le côté producteur (Producer) d'un canal de communication et synchronise les calculs ou opérations asynchrones avec le côté consommateur (Consumer). Via un état interne partagé (Shared State), elle permet de signaler soit la réalisation réussie d'une opération, soit la survenue d'une erreur de type E. L'objet récepteur correspondant est mis à disposition sous la forme de ara::core::Future< void, E > ([SWS_CORE_06344]). Selon les exigences de l'AUTOSAR Adaptive Platform, l'implémentation requiert que le type d'erreur E soit compatible avec ara::core::ErrorCode ; tout écart conduit à une erreur lors de la compilation.

Cycle de vie

La création d'une instance s'effectue via le constructeur par défaut sans paramètre [SWS_CORE_06341], qui crée un nouvel état partagé et se comporte de manière analogue à la fonction standard C++ std::promise. La classe modélise une propriété exclusive et implémente une sémantique de déplacement stricte : le constructeur de copie ([SWS_CORE_06350]) ainsi que l'opérateur d'assignation par copie ([SWS_CORE_06351]) sont tous deux supprimés (delete).

Un état existant peut être transféré à d'autres instances via le constructeur de déplacement ([SWS_CORE_06342]) ou l'opérateur d'assignation par déplacement ([SWS_CORE_06343]). Lors de l'assignation par déplacement, un Shared State détenu jusqu'alors est abandonné et l'état est transféré comme par Promise(std::move(other)).swap(*this) ([SWS_CORE_06343]). De plus, la fonction swap ([SWS_CORE_06352]) permet l'échange direct de deux états.

Le destructeur [SWS_CORE_06349] libère un éventuel Shared State encore détenu. Interpretation : l'abandon prématuré du Shared State lors de la destruction d'une promesse non encore satisfaite devrait conduire à un état orphelin dans le future lié. Question Q-e89b32fa3e5994e2 (ouverte) En ce qui concerne la concurrence, la création standard ([SWS_CORE_06341]) ainsi que la définition du résultat ([SWS_CORE_06345], [SWS_CORE_06353], [SWS_CORE_06354], [SWS_CORE_06355], [SWS_CORE_06356]) sont thread-safe. En revanche, les opérations de déplacement, swap, la récupération du future ([SWS_CORE_06344]) et la destruction ne sont pas thread-safe et requièrent une coordination externe en cas d'accès partagé.

Parcours d'utilisation

L'utilisation typique de ara::core::Promise< void, E > comprend la préparation de l'exécution asynchrone, la transmission du canal de réception et la notification consécutive du résultat :

  1. Initialisation : le producteur instancie l'objet promise ([SWS_CORE_06341]).
  2. Récupérer le future : via get_future(), le ara::core::Future< void, E > lié est créé exactement une fois ([SWS_CORE_06344]) et transmis au côté consommateur.
  3. Définir le résultat : après l'achèvement de l'opération asynchrone, le producteur place l'état partagé dans l'état prêt (ready) :
  4. Résolution : dès que l'état est prêt, le consommateur peut consommer le résultat via le future ; l'objet promise est libéré à la fin de sa portée ([SWS_CORE_06349]).
Déroulement typique de la synchronisation avec Promise<void, E>ErzeugerPromiseKonsumentPromise()get_future()Future<void, E>Transmettre le FutureUse Case: Asynchrone VerarbeitungaltErfolgreicher Abschlussset_value()FehlerfallSetError(error) ou SetResult(res)L'état partagé est prêt (ready)Récupérer l'état via Future~Promise()

Diagramme de séquence : déroulement typique de la synchronisation asynchrone, de la création à la mise à disposition du résultat. Sources : [SWS_CORE_06341], [SWS_CORE_06344], [SWS_CORE_06345], [SWS_CORE_06349]

Scénarios d'erreur

Les violations des préconditions conduisent à des situations d'erreur définies (Violations) :

En ce qui concerne la sécurité vis-à-vis des exceptions, les méthodes SetError et SetResult sont conditionnellement sûres vis-à-vis des exceptions (conditionally exception safe) : elles ne garantissent noexcept que si le type E est classé comme constructible par déplacement sans exception (nothrow-move-constructible) ou constructible par copie sans exception (nothrow-copy-constructible) ([SWS_CORE_06353], [SWS_CORE_06354], [SWS_CORE_06355], [SWS_CORE_06356]).

Ce guide de classe se base sur la spécification AUTOSAR Adaptive Platform R25-11 et a été généré de manière automatisée.

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__Promise__void__E__714 Promise< void, E > + 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_06341
Promise (Promise &&other) noexcept; SWS_CORE_06342
Promise (const Promise &)=delete; SWS_CORE_06350
~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< void, E > get_future () noexcept;
set_value fonction

Set the shared state value and make the shared state ready.

void set_value () noexcept;
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_06353
void SetError (const E &error) noexcept(std::is_nothrow_copy_ constructible< E >::value); SWS_CORE_06354
SetResult fonction 2

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

Surcharges SetResult 2
void SetResult (const Result< void, E > &result) noexcept(std::is_ nothrow_copy_constructible< E >::value); SWS_CORE_06355
void SetResult (Result< void, E > &&result) noexcept(std::is_nothrow_ move_constructible< E >::value); SWS_CORE_06356
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_06343
Promise & operator= (const Promise &)=delete; SWS_CORE_06351

Documentation des méthodes

fonction SetError [SWS_CORE_06353] 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< void, E >
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_06353
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06353@rel:R25-11#2d52c8f8
Content hash
2d52c8f8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06353
Status: valid/unmigrated Version: rel:R25-11#2f9d7e66 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_06353@rel:R25-11#2f9d7e66
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c1acd7052026-09-30
  • R19-11rel:R19-11#d02dc4682026-10-14
  • R20-11rel:R20-11#21198bb82026-10-14
  • R21-11rel:R21-11#e83c316a2026-10-14
  • R22-11rel:R22-11#5a5e04422026-10-14
  • R23-11rel:R23-11#918aad8b2026-10-14
  • R24-11rel:R24-11#db070e122026-10-14
  • R25-11rel:R25-11#2f9d7e662026-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_06354] 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< void, E >
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_06354
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06354@rel:R25-11#63824040
Content hash
63824040
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06354
Status: valid/unmigrated Version: rel:R25-11#c5a41cff 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_06354@rel:R25-11#c5a41cff
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ba6c26152026-09-30
  • R19-11rel:R19-11#bb2f8ee32026-10-14
  • R20-11rel:R20-11#672901f42026-10-14
  • R21-11rel:R21-11#672901f42026-10-14
  • R22-11rel:R22-11#f2ccaa572026-10-14
  • R23-11rel:R23-11#0bce5bd22026-10-14
  • R24-11rel:R24-11#2de8cbc22026-10-14
  • R25-11rel:R25-11#c5a41cff2026-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_06355] Upstream: RS_AP_00130

void SetResult (const Result< void, E > &result) noexcept(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< void, E >
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_06355
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06355@rel:R25-11#738d9517
Content hash
738d9517
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06355
Status: valid/unmigrated Version: rel:R25-11#102c007d 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_06355@rel:R25-11#102c007d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#037db7362026-09-30
  • R20-11rel:R20-11#cca3bc1b2026-10-14
  • R21-11rel:R21-11#cca3bc1b2026-10-14
  • R22-11rel:R22-11#bbc730c62026-10-14
  • R23-11rel:R23-11#43b78cdb2026-10-14
  • R24-11rel:R24-11#f822e3942026-10-14
  • R25-11rel:R25-11#102c007d2026-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_06356] Upstream: RS_AP_00130

void SetResult (Result< void, E > &&result) noexcept(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< void, E >
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_06356
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06356@rel:R25-11#e9ab6eb7
Content hash
e9ab6eb7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06356
Status: valid/unmigrated Version: rel:R25-11#b774f257 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_06356@rel:R25-11#b774f257
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#7d9463062026-09-30
  • R20-11rel:R20-11#a78d4dc72026-10-14
  • R21-11rel:R21-11#58872cf02026-10-14
  • R22-11rel:R22-11#4ac215012026-10-14
  • R23-11rel:R23-11#6ee718ab2026-10-14
  • R24-11rel:R24-11#b39910a12026-10-14
  • R25-11rel:R25-11#b774f2572026-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_06343] 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< void, E >
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_06343
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06343@rel:R25-11#5742c118
Content hash
5742c118
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06343
Status: valid/unmigrated Version: rel:R25-11#5255319a 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_06343@rel:R25-11#5255319a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#5cab39502026-09-30
  • R19-11rel:R19-11#1bf26ed12026-10-14
  • R20-11rel:R20-11#48b86cf42026-10-14
  • R21-11rel:R21-11#48b86cf42026-10-14
  • R22-11rel:R22-11#f3f4a3782026-10-14
  • R23-11rel:R23-11#f7c7a3162026-10-14
  • R24-11rel:R24-11#75f665232026-10-14
  • R25-11rel:R25-11#5255319a2026-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_06351] 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< void, E >

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

Record
AUTOSAR/AP/record/SWS_CORE_06351
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06351@rel:R25-11#044cff7e
Content hash
044cff7e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06351
Status: valid/unmigrated Version: rel:R25-11#da528bfc 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_06351@rel:R25-11#da528bfc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a520155e2026-09-30
  • R19-11rel:R19-11#5368d78a2026-10-14
  • R20-11rel:R20-11#f52129842026-10-14
  • R21-11rel:R21-11#f52129842026-10-14
  • R22-11rel:R22-11#98fef6192026-10-14
  • R23-11rel:R23-11#42352c6e2026-10-14
  • R24-11rel:R24-11#da528bfc2026-10-14
  • R25-11rel:R25-11#da528bfc2026-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_06341] 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< void, E >
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_06341
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06341@rel:R25-11#caa16b2e
Content hash
caa16b2e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06341
Status: valid/unmigrated Version: rel:R25-11#878bdc11 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_06341@rel:R25-11#878bdc11
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#84c0020a2026-09-30
  • R19-11rel:R19-11#f91d69792026-10-14
  • R20-11rel:R20-11#4be142f22026-10-14
  • R21-11rel:R21-11#4be142f22026-10-14
  • R22-11rel:R22-11#0bcdcb452026-10-14
  • R23-11rel:R23-11#ac0b53742026-10-14
  • R24-11rel:R24-11#49e7ea6a2026-10-14
  • R25-11rel:R25-11#878bdc112026-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_06342] 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< void, E >
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_06342
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06342@rel:R25-11#72b93429
Content hash
72b93429
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06342
Status: valid/unmigrated Version: rel:R25-11#20cd8f65 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_06342@rel:R25-11#20cd8f65
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#1ed484852026-09-30
  • R19-11rel:R19-11#b97a94832026-10-14
  • R20-11rel:R20-11#0596cb3d2026-10-14
  • R21-11rel:R21-11#0596cb3d2026-10-14
  • R22-11rel:R22-11#a2237bb72026-10-14
  • R23-11rel:R23-11#c68724922026-10-14
  • R24-11rel:R24-11#7b610fd62026-10-14
  • R25-11rel:R25-11#20cd8f652026-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_06350] Upstream: RS_AP_00130

Promise (const Promise &)=delete;

Copy constructor shall be disabled.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >

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

Record
AUTOSAR/AP/record/SWS_CORE_06350
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06350@rel:R25-11#73bf7c79
Content hash
73bf7c79
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06350
Status: valid/unmigrated Version: rel:R25-11#7082329f 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_06350@rel:R25-11#7082329f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0d3116c52026-09-30
  • R19-11rel:R19-11#2fe4c5172026-10-14
  • R20-11rel:R20-11#7108e8d22026-10-14
  • R21-11rel:R21-11#19c7640a2026-10-14
  • R22-11rel:R22-11#c54e1c692026-10-14
  • R23-11rel:R23-11#0dcb8fcb2026-10-14
  • R24-11rel:R24-11#7082329f2026-10-14
  • R25-11rel:R25-11#7082329f2026-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_06344] Upstream: RS_AP_00130

Future< void, 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< void, E >
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< void, 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_06344
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06344@rel:R25-11#41921bfb
Content hash
41921bfb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06344
Status: valid/unmigrated Version: rel:R25-11#93e02dbc 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_06344@rel:R25-11#93e02dbc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#5bce60962026-09-30
  • R19-11rel:R19-11#912235632026-10-14
  • R20-11rel:R20-11#da5539322026-10-14
  • R21-11rel:R21-11#da5539322026-10-14
  • R22-11rel:R22-11#7b23ef9e2026-10-14
  • R23-11rel:R23-11#735996a12026-10-14
  • R24-11rel:R24-11#4b281ba02026-10-14
  • R25-11rel:R25-11#93e02dbc2026-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_06345] Upstream: RS_AP_00130

void set_value () noexcept;

Set the shared state value and make the shared state ready.

Header-Datei#include "ara/core/future.h"
Scopeclass ara::core::Promise< void, E >
Exception-Sicherheitexception 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

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CORE_06345
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06345@rel:R25-11#c775ea4d
Content hash
c775ea4d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06345
Status: valid/unmigrated Version: rel:R25-11#3b3c5766 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_06345@rel:R25-11#3b3c5766
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#134575262026-09-30
  • R19-11rel:R19-11#af0eb6242026-10-14
  • R20-11rel:R20-11#44ec71e02026-10-14
  • R21-11rel:R21-11#44ec71e02026-10-14
  • R22-11rel:R22-11#dee86f272026-10-14
  • R23-11rel:R23-11#f7220ae52026-10-14
  • R24-11rel:R24-11#8ea561a92026-10-14
  • R25-11rel:R25-11#3b3c57662026-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_06352] 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< void, E >
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_06352
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06352@rel:R25-11#687c89b2
Content hash
687c89b2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06352
Status: valid/unmigrated Version: rel:R25-11#41dc8796 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_06352@rel:R25-11#41dc8796
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b6b9b8d62026-09-30
  • R19-11rel:R19-11#4b8965fa2026-10-14
  • R20-11rel:R20-11#a9c4f5f72026-10-14
  • R21-11rel:R21-11#009b8cf12026-10-14
  • R22-11rel:R22-11#c398209e2026-10-14
  • R23-11rel:R23-11#102574fc2026-10-14
  • R24-11rel:R24-11#7f8dd43a2026-10-14
  • R25-11rel:R25-11#41dc87962026-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_06349] 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< void, E >
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_06349
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_06349@rel:R25-11#4f8e0a53
Content hash
4f8e0a53
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_06349
Status: valid/unmigrated Version: rel:R25-11#4c093b4e 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_06349@rel:R25-11#4c093b4e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e1659fee2026-09-30
  • R19-11rel:R19-11#b5cebea92026-10-14
  • R20-11rel:R20-11#ccc655c02026-10-14
  • R21-11rel:R21-11#ccc655c02026-10-14
  • R22-11rel:R22-11#5aed9c9a2026-10-14
  • R23-11rel:R23-11#346a26f62026-10-14
  • R24-11rel:R24-11#5ed103312026-10-14
  • R25-11rel:R25-11#4c093b4e2026-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