函数 Disable [SWS_PHM_01380] Upstream: RS_PHM_00101, RS_AP_00159
ara::core::Future< void > Disable () noexcept;
Disable supervision until Enable() is called.
使用
类ara::phm::SupervisedEntity的函数Disable()用于停用实体的监控,直到通过Enable()重新激活[SWS_PHM_01380]。该方法在调用时不带参数,并声明为具备异常安全性(noexcept)[SWS_PHM_01380]。它返回一个ara::core::Future<void>作为返回值,通过该返回值可以查询异步停用的结果[SWS_PHM_01380]。
错误处理
成功时,Future提供值void。如果停用期间发生错误,Future 将包含来自错误域PhmErrc [SWS_PHM_01380]、[SWS_PHM_01240]的错误代码。特别是,当已存在尚未完成的Enable()或Disable()请求时,将返回错误PhmErrc::kServiceNotReady [SWS_PHM_01380]、[SWS_PHM_01240]。针对此错误情况指定了回滚语义[SWS_PHM_01380]。
并发性与交互
该方法被归类为非线程安全(not-threadsafe)[SWS_PHM_01380]。因此,必须对SupervisedEntity同一实例上的并行调用进行同步。理解:正在进行的请求可能只有在返回的Future就绪后才被视为结束,因此在此之前应避免后续调用,以排除PhmErrc::kServiceNotReady。 问题 Q-ffc7fc693d7ddbe9 (未决)成功停用后,监控将保持非活动状态,直到通过Enable()重新启动监控(前提是当前功能组状态允许)[SWS_PHM_01130]。
本文本由 AI 系统基于规范生成。
| Header-Datei | #include "ara/phm/supervised_entity.h" |
|---|---|
| Scope | class ara::phm::SupervisedEntity |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not-threadsafe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Future< void > | void if successful, otherwise an error |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| PhmErrc::kServiceNotReady | rollback_semantics There is already an ongoing Enable or Disable request. |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_PHM_01380- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_PHM_01380@rel:R25-11#a928d1fb- Content hash
a928d1fb- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01380
Status: valid/unmigrated
Version: rel:R25-11#45d48541
Versionshistorie & Revisions (1 transition)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_PHM_01380@rel:R25-11#45d48541
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 · 德文原文