函数 MayRelease [SWS_DM_01536] Upstream: RS_Diag_04135
bool MayRelease () const noexcept;
Reports whether the shared resource is no longer in use.
类 ara::diag::ReleaseHandler 的同步成员函数 MayRelease 用于查询共享资源的状态 [SWS_DM_01536]。它不接受任何参数,并返回一个布尔值:当资源不再使用时返回 true,否则返回 false SWS Diagnostics §8.23.1.2.3.1 “MayRelease”。集成时需要头文件 ara/diag/release_handler.h [SWS_DM_01536]。
该方法声明为 noexcept,并具有异常安全性 exception safe [SWS_DM_01536]。不抛出任何异常,也不传递任何错误代码。对于此查询函数,未规定通过 DET、DEM 或返回 ara::core::Result 的特定错误处理 SWS Diagnostics §8.23.1.2.3.1 “MayRelease”。
关于并发性,该方法被指定为 thread-safe,并限定为 const [SWS_DM_01536]。它可以由多个线程并发调用,而不会修改对象的内部状态。解释:调用方可能会在释放或归还资源之前同步使用该查询;该方法本身推测不执行释放操作,而是纯粹充当守卫。 问题 Q-207324651411ed8f (未决)
在模块 Diagnostics (DM) 的范围内,该函数在发行版 R25-11 的 [SWS_DM_01536] 下指定 SWS Diagnostics §77。它在共享资源的生命周期中充当标准化接口。
此使用说明由 AI 创建,基于 AUTOSAR Adaptive R25-11 规范的要求。
实现者指南即将推出(复杂度 I1)
| Header-Datei | #include "ara/diag/release_handler.h" |
|---|---|
| Scope | class ara::diag::ReleaseHandler |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| bool | True in if the shared resource is no longer in use, False otherwise |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_01536- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_01536@rel:R25-11#7be0a381- Content hash
7be0a381- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01536
Status: valid/unmigrated
Version: rel:R25-11#2fdaf46b
Versionshistorie & Revisions (1 transition, 5 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_01536@rel:R25-11#2fdaf46b
Recorded Revisions (5):
- R25-11
rel:R25-11#a23ca4922026-09-30 - R22-11
rel:R22-11#d7c5870c2026-10-14 - R23-11
rel:R23-11#47a2a7aa2026-10-14 - R24-11
rel:R24-11#2fdaf46b2026-10-14 - R25-11
rel:R25-11#2fdaf46b2026-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 · 德文原文