函数 Offer [SWS_DM_00802] Upstream: RS_AP_00119, RS_AP_00139, RS_Diag_04033
ara::core::Result< void > Offer () noexcept;
This Offer will enable the DM to forward request messages to this handler.
用法与语义
类 ara::diag::UploadService([SWS_DM_00802])的同步成员函数 Offer 激活由 Diagnostic Management(DM)向已注册处理程序转发诊断请求的功能。该调用不接受任何参数,并声明了异常安全性 noexcept([SWS_DM_00802])。返回类型为 ara::core::Result<void>,用于表示成功提供或发生的错误([SWS_DM_00802])。
错误处理与并发
- 错误码:如果该服务先前已被提供,则执行失败并返回错误码
DiagOfferErrc::kAlreadyOffered([SWS_DM_00802]);此时适用回滚语义。 - 线程安全性:该函数被显式指定为 not thread-safe([SWS_DM_00802])。同一服务实例上的并发调用必须由应用端进行同步。
诊断子系统中的交互
该操作融入了自适应诊断处理程序的一致提供模式,例如用于 DownloadService([SWS_DM_00792])或 GenericUDSService([SWS_DM_00619])等情况。只要尚未完成提供,DM 就不会将传入的诊断消息转发给处理程序(参见 [SWS_DM_01525] 中的类似行为)。解释:Offer 的调用通常可能在应用程序的初始化阶段进行,早于接收诊断流量之前。 问题 Q-aba091d233b5e45b (未决)
本使用说明基于 AUTOSAR 规范 R25-11 自动生成。
实现者指南即将推出(复杂度 I1)
| Header-Datei | #include "ara/diag/upload.h" |
|---|---|
| Scope | class ara::diag::UploadService |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | Returns nothing or an error. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| DiagOfferErrc::kAlreadyOffered | rollback_semantics The service is already offered. |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_00802- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_00802@rel:R25-11#ce2eb3d2- Content hash
ce2eb3d2- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00802
Status: valid/unmigrated
Version: rel:R25-11#bad97a1d
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_DM_00802@rel:R25-11#bad97a1d
Recorded Revisions (8):
- R25-11
rel:R25-11#786c252c2026-09-30 - R19-11
rel:R19-11#3f54e3d62026-10-14 - R20-11
rel:R20-11#0298249e2026-10-14 - R21-11
rel:R21-11#13db1e2f2026-10-14 - R22-11
rel:R22-11#c89046b12026-10-14 - R23-11
rel:R23-11#5c26975d2026-10-14 - R24-11
rel:R24-11#27f9bbaf2026-10-14 - R25-11
rel:R25-11#bad97a1d2026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · 德文原文