DEENESPTFRRUARHIKOZHNL

класс 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

Руководство пользователяСОЗДАНО ИИ

Позволяет асинхронно предоставлять void-результат или ошибку связанному объекту Future.
СОЗДАНО ИИ не проверено Модель: gemini-3.8-flash-medium · Усилие: medium · Температура: не регулируется · Промпт: 5c77833bef95 Происхождение Открытые вопросы (1)
переведено с немецкого руководстваgemini-3.8-flash-low · 2026-10-13 · Немецкий оригинал

Позволяет асинхронно предоставлять void-результат или ошибку связанному объекту Future.

Специализация ara::core::Promise< void, E > служит асинхронной конечной точкой производителя для сигнализации о завершении операции без возвращаемого значения или для передачи ошибки ([SWS_CORE_06341]). После инстанцирования через get_future() ровно один раз запрашивается соответствующий Future для потребителя ([SWS_CORE_06344]). Предоставление выполняется потокобезопасно (thread-safe) с помощью set_value(), SetError() или SetResult(), благодаря чему разделяемое состояние помечается как готовое. Поскольку класс обладает исключительно семантикой перемещения, многократная установка или отсутствие разделяемого состояния приводят к специфицированным нарушениям.

Контекст

Класс ara::core::Promise< void, E > представляет собой шаблонную специализацию для асинхронных процессов без полезного значения (тип возвращаемого значения void). Он образует сторону производителя (Producer) канала связи и синхронизирует асинхронные вычисления или операции со стороной потребителя (Consumer). Через общее внутреннее состояние (Shared State) он позволяет сигнализировать либо об успешном завершении операции, либо о возникновении ошибки типа E. Соответствующий объект-получатель предоставляется в форме ara::core::Future< void, E > ([SWS_CORE_06344]). Согласно требованиям AUTOSAR Adaptive Platform, реализация требует, чтобы тип ошибки E был совместим с ara::core::ErrorCode; любое отклонение приводит к ошибке компиляции.

Жизненный цикл

Создание экземпляра выполняется через конструктор по умолчанию без параметров [SWS_CORE_06341], который создает новое общее состояние и ведет себя аналогично стандартной функции C++ std::promise. Класс моделирует эксклюзивное владение и реализует строгую семантику перемещения: как конструктор копирования ([SWS_CORE_06350]), так и оператор присваивания с копированием ([SWS_CORE_06351]) удалены (delete).

Существующее состояние может быть передано другим экземплярам через конструктор перемещения ([SWS_CORE_06342]) или оператор присваивания с перемещением ([SWS_CORE_06343]). При присваивании с перемещением удерживаемое до этого момента Shared State сбрасывается, и состояние передается так, как если бы использовался Promise(std::move(other)).swap(*this) ([SWS_CORE_06343]). Кроме того, функция swap ([SWS_CORE_06352]) позволяет напрямую обменивать два состояния.

Деструктор [SWS_CORE_06349] освобождает удерживаемое Shared State, если таковое имеется. Интерпретация: преждевременный сброс Shared State при уничтожении еще не удовлетворенного Promise, вероятно, приведет к переходу связанного Future в повисшее (осиротевшее) состояние. Вопрос Q-e89b32fa3e5994e2 (открытый) В отношении параллелизма создание по умолчанию ([SWS_CORE_06341]) и установка результата ([SWS_CORE_06345], [SWS_CORE_06353], [SWS_CORE_06354], [SWS_CORE_06355], [SWS_CORE_06356]) являются потокобезопасными (thread-safe). Напротив, операции перемещения, swap, получение Future ([SWS_CORE_06344]) и уничтожение не являются thread-safe и требуют внешней координации при совместном доступе.

Путь использования

Типичное использование ara::core::Promise< void, E > включает подготовку асинхронного выполнения, передачу канала приема и последующее оповещение о результате:

  1. Инициализация: производитель инстанцирует объект Promise ([SWS_CORE_06341]).
  2. Получение Future: с помощью get_future() ровно один раз создается связанный ara::core::Future< void, E > ([SWS_CORE_06344]) и передается на сторону потребителя.
  3. Установка результата: после завершения асинхронной операции производитель переводит разделяемое состояние в состояние готовности (ready):
    • в случае успеха — путем вызова set_value() без аргументов ([SWS_CORE_06345]);
    • в случае ошибки — путем сохранения ошибки через SetError, либо с перемещением ([SWS_CORE_06353]), либо с копированием ([SWS_CORE_06354]);
    • в качестве альтернативы — путем передачи полного Result< void, E > с помощью SetResult с копированием ([SWS_CORE_06355]) или с перемещением ([SWS_CORE_06356]).
  4. Разрешение: как только состояние становится готовым, потребитель может получить результат через Future; объект Promise освобождается в конце своей области видимости ([SWS_CORE_06349]).
Типичная последовательность синхронизации с Promise<void, E>ErzeugerPromiseKonsumentPromise()get_future()Future<void, E>Передать FutureUse Case: Asynchrone VerarbeitungaltErfolgreicher Abschlussset_value()FehlerfallSetError(error) или SetResult(res)Разделяемое состояние готово (ready)Запросить статус через Future~Promise()

Диаграмма последовательности: типичный процесс асинхронной синхронизации от создания до предоставления результата. Источники: [SWS_CORE_06341], [SWS_CORE_06344], [SWS_CORE_06345], [SWS_CORE_06349]

Сценарии ошибок

Нарушения предусловий приводят к определенным ошибочным ситуациям (Violations):

  • IsoStdFutureErrcFutureAlreadyRetrievedViolation: генерируется, если get_future() вызывается несколько раз для одного и того же разделяемого состояния ([SWS_CORE_06344]).
  • IsoStdFutureErrcNoStateViolation: возникает, когда get_future() вызывается без наличия у Promise разделяемого состояния ([SWS_CORE_06344]), например после операции перемещения ([SWS_CORE_06342]).
  • IsoStdFutureErrcPromiseAlreadySatisfiedViolation: возникает, если set_value() ([SWS_CORE_06345]), SetError() ([SWS_CORE_06353], [SWS_CORE_06354]) или SetResult() ([SWS_CORE_06355], [SWS_CORE_06356]) вызывается, когда в Shared State уже сохранены значение или ошибка.
  • PromiseNoSharedStateToSetViolation: сигнализирует о том, что set_value() ([SWS_CORE_06345]), SetError() ([SWS_CORE_06353], [SWS_CORE_06354]) или SetResult() ([SWS_CORE_06355], [SWS_CORE_06356]) были вызваны при отсутствии существующего разделяемого состояния.

С точки зрения безопасности исключений методы SetError и SetResult являются условно безопасными к исключениям (conditionally exception safe): они гарантируют noexcept только в том случае, если тип E классифицирован как nothrow-move-конструируемый или nothrow-copy-конструируемый ([SWS_CORE_06353], [SWS_CORE_06354], [SWS_CORE_06355], [SWS_CORE_06356]).

Данное руководство по классу основано на спецификации AUTOSAR Adaptive Platform R25-11 и сформировано автоматически.

Карта членов

Конструкторы и деструктор

2

Операторы

1

Диаграмма классов

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()

Подробный вид

Выберите элемент в оглавлении.

Конструкторы и деструктор

Promise функция 3

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

Перегрузки Promise 3
Promise () noexcept; SWS_CORE_06341
Promise (Promise &&other) noexcept; SWS_CORE_06342
Promise (const Promise &)=delete; SWS_CORE_06350
~Promise функция

Destructor for Promise objects Abandons any shared state.

~Promise () noexcept;

Методы

get_future функция

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 функция

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

void set_value () noexcept;
SetError функция 2

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

Перегрузки 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 функция 2

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

Перегрузки 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 функция

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;

Операторы

operator= функция 2

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

Перегрузки = 2
Promise & operator= (Promise &&other) noexcept; SWS_CORE_06343
Promise & operator= (const Promise &)=delete; SWS_CORE_06351

Документация методов

функция 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#f77a5af0
Content hash
f77a5af0
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

функция 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#0fb1506d
Content hash
0fb1506d
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

функция 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#c66bdc13
Content hash
c66bdc13
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

функция 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#4a5a1b97
Content hash
4a5a1b97
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

функция 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#d5328c8b
Content hash
d5328c8b
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

функция 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#caf13edc
Content hash
caf13edc
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

функция 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#16a20fb1
Content hash
16a20fb1
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

функция 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#ef84cfdc
Content hash
ef84cfdc
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

функция 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#b3680421
Content hash
b3680421
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

функция 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#e99c7bdd
Content hash
e99c7bdd
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

функция 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#a1707250
Content hash
a1707250
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

функция 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#822fd0ab
Content hash
822fd0ab
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

функция ~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#00a60297
Content hash
00a60297
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