DEENESPTFRRUARHIKOZHNL

类 ara::tsync::SynchronizedTimeBaseConsumer

[SWS_TS_01000] Upstream: RS_TS_00030 原文尚未导入

class SynchronizedTimeBaseConsumer final {...};

Class SynchronizedTimeBaseConsumer is the access to the synchronized timebase referenced by the InstanceSpecifier. It allows to get the current time_point, the rate deviation, the current status and the received user data

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Forwarding-Header#include "ara/tsync/tsync_fwd.h"
Scopenamespace ara::tsync

用户指南人工智能生成

使应用程序能够以线程安全的方式查询同步时间值并注册状态通知器。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 254e46109c20 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使应用程序能够以线程安全的方式查询同步时间值并注册状态通知器。

类 ara::tsync::SynchronizedTimeBaseConsumer 使时间应用程序能够访问通过 ara::core::InstanceSpecifier 引用的同步时间基准([SWS_TS_01001])。通过线程安全的方法,应用程序可以查询时间值和状态标志的当前快照以及时钟的速率偏差([SWS_TS_01009])。此外,还可以针对状态更改、时间跳变、验证数据和精度测量注册通知器,其中每种事件类型最多有一个处于活动状态的注册。复制操作被禁止,因此实例只能被移动或通过其析构函数释放。

上下文

类 ara::tsync::SynchronizedTimeBaseConsumer 为 Adaptive Platform 上的时间应用程序构成了通往通过 ara::core::InstanceSpecifier 标识的同步时间基准的接口([SWS_TS_01001])。其核心任务是为应用程序提供当前查询时间点、时钟的速率偏差([SWS_TS_01008])以及一致的状态标志和接收到的用户数据([SWS_TS_01009])。主要交互伙伴包括调用方应用程序软件(Time Consumer Application)、消费者实例本身以及采集同步数据并触发通知事件的 Tsync 子系统([SWS_TS_01016]、[SWS_TS_01018])。

生命周期

实例化通过显式构造函数在指定 ara::core::InstanceSpecifier 的情况下进行([SWS_TS_01001])。该构造函数被归类为线程安全且异常安全。为了管理资源,该类实现了严格的移动语义:移动构造函数([SWS_TS_01003])和移动赋值运算符([SWS_TS_01004])允许所有权转移,而复制构造函数([SWS_TS_01005])和复制赋值运算符([SWS_TS_01006])被显式删除(=delete)。这可以防止对同一时间基准资源的访问被意外重复。

析构函数释放该实例([SWS_TS_01002])。在并发性方面适用明确的划分:虽然构造函数([SWS_TS_01001])以及查询方法 GetRateDeviation([SWS_TS_01008])和 GetTimeWithStatus([SWS_TS_01009])是以线程安全方式执行的,但所有注册和注销函数以及移动操作和析构函数均被指定为非线程安全(non_threadsafe)。

使用路径

常规使用流程包括初始化、注册相关通知器、周期性或基于事件的查询以及最终清理等阶段:

  • 初始化:应用程序使用匹配的端口实例规范创建对象([SWS_TS_01001])。
  • 通知器注册:应用程序针对特定事件注册回调函数或通知器对象:
    • 通过 RegisterStatusChangeNotifier 注册一般状态标志更改([SWS_TS_01010]),
    • 通过 RegisterSynchronizationStateChangeNotifier 注册同步状态更改([SWS_TS_01012]),
    • 通过 RegisterTimeLeapNotifier 注册时间跳变的发生([SWS_TS_01014]),
    • 通过 RegisterTimeValidationNotification 注册验证数据块的接收([SWS_TS_01016]),
    • 通过 RegisterTimePrecisionMeasurementNotifier 注册时间精度测量的可用性([SWS_TS_01018])。
    每种通知器类型最多可以激活一个注册;任何后续注册都会覆盖先前的注册([SWS_TS_01010]、[SWS_TS_01018])。
  • 运行中查询:通过 GetTimeWithStatus(),应用程序检索包含状态标志、时钟配置以及本地和同步时间值的一致快照(SynchronizedTimeBaseStatus)([SWS_TS_01009])。通过 GetRateDeviation() 确定时钟的当前速率偏差([SWS_TS_01008])。
  • 清理:在析构消费者之前,根据需要在销毁对象([SWS_TS_01002])之前通过相应的调用(例如 UnregisterStatusChangeNotifier([SWS_TS_01011])、UnregisterSynchronizationStateChangeNotifier([SWS_TS_01013])、UnregisterTimeLeapNotifier([SWS_TS_01015])、UnregisterTimeValidationNotification([SWS_TS_01017])或 UnregisterTimePrecisionMeasurementNotifier([SWS_TS_01019]))注销通知器。
SynchronizedTimeBaseConsumer 的使用流程应用SynchronizedTimeBaseConsumerTsync-SubsystemUse Case: InitialisierungSynchronizedTimeBaseConsumer(specifier)Use Case: Notifier-RegistrierungRegisterStatusChangeNotifier(notifier)RegisterTimeValidationNotification(timeBaseValidationNotification)Use Case: ZeitabfrageGetTimeWithStatus()SynchronizedTimeBaseStatusGetRateDeviation()double (Ratenabweichung)opt状态变更或事件Signalisiere Ereignisnotifier(status)Use Case: BereinigungUnregisterStatusChangeNotifier()~SynchronizedTimeBaseConsumer()

时序图:初始化、通知器注册、周期性查询和清理的典型顺序。来源:[SWS_TS_01001]、[SWS_TS_01008]、[SWS_TS_01009]、[SWS_TS_01010]、[SWS_TS_01011]、[SWS_TS_01002]。

错误场景

该类的所有接口方法均声明为 noexcept 并指定为异常安全(exception safe)。因此,错误不会通过 C++ 异常进行报告。应注意以下边界条件和配置违规:

  • 端口映射配置错误:通过 TimeSyncPortPrototypeToTimeBaseMapping 引用的 PortPrototype 必须强制通过 SynchronizedTimeBaseConsumerInterface 进行类型化;否则存在 PortInterfaceMappingViolation([SWS_TS_01001])。
  • 覆盖现有回调:如果再次调用注册方法,新的通知器将覆盖先前存储的回调,而不会发出单独的错误消息([SWS_TS_01010]、[SWS_TS_01012]、[SWS_TS_01014]、[SWS_TS_01016]、[SWS_TS_01018])。
  • 精度测量缺少队列处理:Tsync 子系统不对时间精度的测量数据执行中间缓冲(队列处理)([SWS_TS_01018])。如果通知器无法及时处理数据,且应用程序在通知器中未提供自己的缓冲,则后续测量大概率会丢失。 问题 Q-dd82872d44124973 (未决)
  • 通知器方法存在数据竞争风险:由于通知器的注册和注销被标明为非线程安全,因此在没有外部保护机制的情况下从不同执行上下文并发调用大概率会导致状态不一致(解释)。 问题 Q-626c00c2b1849655 (未决)

本指南由 AI 模型基于 AUTOSAR R25-11 规范数据生成。

成员图

类图

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__tsync__SynchronizedTimeBaseConsumer483 SynchronizedTimeBaseConsumer + SynchronizedTimeBaseConsumer() + operator=() + ~SynchronizedTimeBaseConsumer() + GetRateDeviation() + GetTimeWithStatus() + RegisterStatusChangeNotifier() + RegisterSynchronizationStateChangeNotifier() + RegisterTimeLeapNotifier() + RegisterTimePrecisionMeasurementNotifier() + RegisterTimeValidationNotification() + UnregisterStatusChangeNotifier() + UnregisterSynchronizationStateChangeNotifier() + UnregisterTimeLeapNotifier() + UnregisterTimePrecisionMeasurementNotifier() + UnregisterTimeValidationNotification()

详细视图

请在大纲中选择一个条目。

构造函数和析构函数

SynchronizedTimeBaseConsumer constructor.

重载 SynchronizedTimeBaseConsumer 3
explicit SynchronizedTimeBaseConsumer (const ara::core::Instance Specifier &specifier) noexcept; SWS_TS_01001
SynchronizedTimeBaseConsumer (SynchronizedTimeBaseConsumer &&stbc) noexcept; SWS_TS_01003
SynchronizedTimeBaseConsumer (const SynchronizedTimeBaseConsumer &)=delete; SWS_TS_01005

SynchronizedTimeBaseConsumer destructor.

方法

Method to obtain the current rate deviation of the clock.

double GetRateDeviation () const noexcept;

Method to obtain a snapshot of the current state of the clock. This includes status flags, clock configuration and the actual time value (local and synchronized) of the created status object.

SynchronizedTimeBaseStatus GetTimeWithStatus () const noexcept;

Register a notifier function which is called if a StatusFlag is changed (i.e. synchronization state, time leap or userdata). A maximum of one notifier can be registered. Every further registration overwrites the current registration.

void RegisterStatusChangeNotifier (SynchronizedTimeBaseNotifier notifier) noexcept;

Register a notifier function which is called if a synchronization state is changed. A maximum of one notifier can be registered. Every further registration overwrites the current registration.

void RegisterSynchronizationStateChangeNotifier (Synchronization Notifier notifier) noexcept;

Register a notifier function which is called if a time leap happened. A maximum of one notifier can be registered. Every further registration overwrites the current registration.

void RegisterTimeLeapNotifier (SynchronizedTimeBaseNotifier notifier) noexcept;

Register a notifier function which is called if a new time precision snapshot is available. A maximum of one notifier can be registered. Every further registration overwrites the current registration. The Tsync will not do any queuing. If needed it has to be done within the notifier.

void RegisterTimePrecisionMeasurementNotifier (TimePrecisionNotifier notifier) noexcept;

Method that can be used by time consumer applications to receive time sync parameters. A maximum of one notifier can be registered. Every further registration overwrites the current registration.

void RegisterTimeValidationNotification (ConsumerTimeBaseValidation Notification &timeBaseValidationNotification) noexcept;

Unregister a notifier function which is called if a StatusFlag is changed (i.e. synchronization state, time leap or userdata). .

void UnregisterStatusChangeNotifier () noexcept;

Unregister a notifier function which is called if a synchronization state is changed. .

void UnregisterSynchronizationStateChangeNotifier () noexcept;

Unregister a notifier function which is called if a time leap happened. .

void UnregisterTimeLeapNotifier () noexcept;

Unregister a notifier function which is called if a new time precision snapshot is available. .

void UnregisterTimePrecisionMeasurementNotifier () noexcept;

Method that can be used by time consumer applications to receive time sync parameters. .

void UnregisterTimeValidationNotification () noexcept;

运算符

operator= 函数 2

Move assignment operator for SynchronizedTimeBaseConsumer.

重载 = 2
SynchronizedTimeBaseConsumer & operator= (const SynchronizedTimeBase Consumer &)=delete; SWS_TS_01006

方法文档

函数 GetRateDeviation [SWS_TS_01008] Upstream: RS_TS_00018 原文尚未导入

double GetRateDeviation () const noexcept;

Method to obtain the current rate deviation of the clock.

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
doubleThe current rate deviation.

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

Record
AUTOSAR/AP/record/SWS_TS_01008
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01008@rel:R25-11#8358de41
Content hash
8358de41
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01008
Status: valid/unmigrated Version: rel:R25-11#3a189a5f 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_TS_01008@rel:R25-11#3a189a5f
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#6317296d2026-09-30
  • R20-11rel:R20-11#631e05a12026-10-14
  • R21-11rel:R21-11#631e05a12026-10-14
  • R22-11rel:R22-11#814e445e2026-10-14
  • R23-11rel:R23-11#7b57af722026-10-14
  • R24-11rel:R24-11#3a189a5f2026-10-14
  • R25-11rel:R25-11#3a189a5f2026-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

函数 GetTimeWithStatus [SWS_TS_01009] Upstream: RS_TS_00021 原文尚未导入

SynchronizedTimeBaseStatus GetTimeWithStatus () const noexcept;

Method to obtain a snapshot of the current state of the clock. This includes status flags, clock configuration and the actual time value (local and synchronized) of the created status object.

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
SynchronizedTimeBaseStatusA clock specific TimeBaseStatus that contains all the relevant clock information.

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

Record
AUTOSAR/AP/record/SWS_TS_01009
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01009@rel:R25-11#4d59a1e7
Content hash
4d59a1e7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01009
Status: valid/unmigrated Version: rel:R25-11#739e94f0 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_TS_01009@rel:R25-11#739e94f0
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#f9c9cf7c2026-09-30
  • R20-11rel:R20-11#dd0ae1732026-10-14
  • R21-11rel:R21-11#dd0ae1732026-10-14
  • R22-11rel:R22-11#27ec07322026-10-14
  • R23-11rel:R23-11#d08f2f342026-10-14
  • R24-11rel:R24-11#739e94f02026-10-14
  • R25-11rel:R25-11#739e94f02026-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

函数 RegisterStatusChangeNotifier [SWS_TS_01010] Upstream: RS_TS_00034 原文尚未导入

void RegisterStatusChangeNotifier (SynchronizedTimeBaseNotifier notifier) noexcept;

Register a notifier function which is called if a StatusFlag is changed (i.e. synchronization state, time leap or userdata). A maximum of one notifier can be registered. Every further registration overwrites the current registration.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9ef36a5b086f 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::tsync::SynchronizedTimeBaseConsumer 的方法 RegisterStatusChangeNotifier 用于注册回调函数,以便在同步时间基准发生状态更改时进行通知 [SWS_TS_01010]。传入的唯一参数为类型为 SynchronizedTimeBaseNotifier 的 notifier。一旦时间基准的 StatusFlag 发生更改(例如同步状态 synchronization state、时间跳变 time leap 或用户数据 userdata),就会调用已注册的通知器函数 [SWS_TS_01010]。

在任何时间点最多只能注册一个通知器函数 [SWS_TS_01010]。对该方法的每次进一步调用都会完全覆盖现有的注册,从而始终仅保持最后传入的函数处于活动状态 [SWS_TS_01010]。

对于集成和调用上下文,适用以下特定的约束条件:

  • 错误处理:该函数没有返回值(void),声明为 noexcept 并被指定为 exception safe [SWS_TS_01010]。未提供错误代码或错误消息。
  • 并发性:该方法被归类为 non_threadsafe [SWS_TS_01010]。对同一实例的并发访问必须由调用方进行同步。
  • 头文件:声明可通过头文件 #include "ara/tsync/synchronized_time_base_consumer.h" 获取 [SWS_TS_01010]。

本使用说明自动生成,且完全基于 AUTOSAR R25-11 规范数据。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Parameter (in)

ParameterBeschreibung
notifierThe notifier function to be registered.

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_01010
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01010@rel:R25-11#ba1495e0
Content hash
ba1495e0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01010
Status: valid/unmigrated Version: rel:R25-11#964435b1 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_TS_01010@rel:R25-11#964435b1
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#cbb524222026-09-30
  • R20-11rel:R20-11#dc82c1662026-10-14
  • R21-11rel:R21-11#5ed9c57d2026-10-14
  • R22-11rel:R22-11#bcb872ad2026-10-14
  • R23-11rel:R23-11#ab8ae2202026-10-14
  • R24-11rel:R24-11#a036661b2026-10-14
  • R25-11rel:R25-11#964435b12026-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

函数 RegisterSynchronizationStateChangeNotifier [SWS_TS_01012] Upstream: RS_TS_00034 原文尚未导入

void RegisterSynchronizationStateChangeNotifier (Synchronization Notifier notifier) noexcept;

Register a notifier function which is called if a synchronization state is changed. A maximum of one notifier can be registered. Every further registration overwrites the current registration.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: e95264d7432e 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::tsync::SynchronizedTimeBaseConsumer 的方法 RegisterSynchronizationStateChangeNotifier(在头文件 ara/tsync/synchronized_time_base_consumer.h 中定义)用于注册类型为 Synchronization Notifier 的回调函数。一旦同步状态发生更改,就会调用该函数 [SWS_TS_01012]。

在使用时必须遵守以下功能规定和约束条件:

  • 注册行为:同一时间最多只能注册一个通知器。每次重新调用该方法都会完全覆盖已存在的注册 [SWS_TS_01012]。
  • 返回与错误安全性:该函数不返回值(返回类型 void)且不抛出异常;它声明为 noexcept 并被指定为异常安全(exception safe)[SWS_TS_01012]。不存在特定的错误代码。
  • 并发性:该操作被归类为非线程安全(non_threadsafe)[SWS_TS_01012]。调用方必须同步对 SynchronizedTimeBaseConsumer 的同一实例的并行调用。

解释:规范表中为 notifier 给出的参数描述“The function to unregister”大概是规范的一处笔误,因为 RegisterSynchronizationStateChangeNotifier 的名称和描述都明确定义了回调的注册和替换 [SWS_TS_01012]。 问题 Q-65eac6c0d06d6c4f (未决)

基于 AUTOSAR Adaptive R25-11 规范自动生成的使用说明。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Parameter (in)

ParameterBeschreibung
notifierThe function to unregister.

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_01012
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01012@rel:R25-11#d639489b
Content hash
d639489b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01012
Status: valid/unmigrated Version: rel:R25-11#d84ac91a 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_TS_01012@rel:R25-11#d84ac91a
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#af97126a2026-09-30
  • R20-11rel:R20-11#d5bce1452026-10-14
  • R21-11rel:R21-11#121dda8e2026-10-14
  • R22-11rel:R22-11#a966aec72026-10-14
  • R23-11rel:R23-11#11c070012026-10-14
  • R24-11rel:R24-11#ba74c8012026-10-14
  • R25-11rel:R25-11#d84ac91a2026-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

函数 RegisterTimeLeapNotifier [SWS_TS_01014] Upstream: RS_TS_00034 原文尚未导入

void RegisterTimeLeapNotifier (SynchronizedTimeBaseNotifier notifier) noexcept;

Register a notifier function which is called if a time leap happened. A maximum of one notifier can be registered. Every further registration overwrites the current registration.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: bdea44f8d9c4 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

函数 RegisterTimeLeapNotifier 注册一个回调函数,一旦发生时间跳变(Time Leap)就会调用该函数 [SWS_TS_01014]。它属于类 ara::tsync::SynchronizedTimeBaseConsumer 并通过头文件 #include "ara/tsync/synchronized_time_base_consumer.h" 提供 [SWS_TS_01014]。

传入的参数为类型为 SynchronizedTimeBaseNotifier 的 notifier [SWS_TS_01014]。同时最多只能注册一个通知器函数;后续对 RegisterTimeLeapNotifier 的每次调用都会覆盖先前注册的函数 [SWS_TS_01014]。该函数不提供返回值 [SWS_TS_01014]。

错误处理与异常安全性

该操作声明为 noexcept 并归类为异常安全 [SWS_TS_01014]。规范元素中未定义具体的错误代码或错误反应 [SWS_TS_01014]。

并发性与限制

关于线程安全性,RegisterTimeLeapNotifier 明确被指定为 non_threadsafe [SWS_TS_01014]。因此,从并发上下文对同一实例的调用必须进行外部同步。

本文由 AI 自动生成,仅供参考。以引用的 AUTOSAR 规范为准。

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Parameter (in)

ParameterBeschreibung
notifierThe function to be called if the TimeBaseStatus has changed.

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_01014
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01014@rel:R25-11#0041c72f
Content hash
0041c72f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01014
Status: valid/unmigrated Version: rel:R25-11#bce4a7cf 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_TS_01014@rel:R25-11#bce4a7cf
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#a27a028d2026-09-30
  • R20-11rel:R20-11#4d2128072026-10-14
  • R21-11rel:R21-11#f53cf2e02026-10-14
  • R22-11rel:R22-11#53e0e7302026-10-14
  • R23-11rel:R23-11#9bf2fa892026-10-14
  • R24-11rel:R24-11#b9f485482026-10-14
  • R25-11rel:R25-11#bce4a7cf2026-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

函数 RegisterTimePrecisionMeasurementNotifier [SWS_TS_01018] Upstream: RS_TS_00034 原文尚未导入

void RegisterTimePrecisionMeasurementNotifier (TimePrecisionNotifier notifier) noexcept;

Register a notifier function which is called if a new time precision snapshot is available. A maximum of one notifier can be registered. Every further registration overwrites the current registration. The Tsync will not do any queuing. If needed it has to be done within the notifier.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 120c3f93924e 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

函数 RegisterTimePrecisionMeasurementNotifier 用于注册回调函数,一旦新的时间精度测量快照就绪就会调用该函数 [SWS_TS_01018]。它作为类 ara::tsync::SynchronizedTimeBaseConsumer 的方法通过头文件 ara/tsync/synchronized_time_base_consumer.h 定义 [SWS_TS_01018]。

关于注册行为和调用语义,适用以下规定:

  • 注册限制:同时最多只能注册一个通知器。后续对 RegisterTimePrecisionMeasurementNotifier 的每次调用都会覆盖现有的注册 [SWS_TS_01018]。
  • 无队列:Time Synchronization 模块(Tsync)不对通知或数据执行排队。如果需要缓冲或暂存测量值,则必须在传入的通知器函数内部实现 [SWS_TS_01018]。
  • 返回值与异常处理:该函数不返回返回值(void),并带有 noexcept 被指定为异常安全(exception safe)[SWS_TS_01018]。

关于并发性,该函数被指定为 non_threadsafe [SWS_TS_01018]。这意味着当从多个线程访问时,必须对 RegisterTimePrecisionMeasurementNotifier 的调用进行外部同步,以防止数据争用。据推测,注册最好在实例的确定性初始化阶段进行。 问题 Q-acd77cb313138b63 (未决)

本使用说明是基于 AUTOSAR R25-11 规范版本自动创建的。

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Parameter (in)

ParameterBeschreibung
notifierThe function to be called.

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_01018
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01018@rel:R25-11#2cdfda1f
Content hash
2cdfda1f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01018
Status: valid/unmigrated Version: rel:R25-11#0f285003 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_TS_01018@rel:R25-11#0f285003
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#c03f79d02026-09-30
  • R20-11rel:R20-11#b9e39d5c2026-10-14
  • R21-11rel:R21-11#a98705762026-10-14
  • R22-11rel:R22-11#08913dfe2026-10-14
  • R23-11rel:R23-11#3f9f8ba72026-10-14
  • R24-11rel:R24-11#ba986d8d2026-10-14
  • R25-11rel:R25-11#0f2850032026-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

函数 RegisterTimeValidationNotification [SWS_TS_01016] Upstream: RS_TS_00034 原文尚未导入, RS_TS_00030 原文尚未导入

void RegisterTimeValidationNotification (ConsumerTimeBaseValidation Notification &timeBaseValidationNotification) noexcept;

Method that can be used by time consumer applications to receive time sync parameters. A maximum of one notifier can be registered. Every further registration overwrites the current registration.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 06dbce09e1bf 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

方法 RegisterTimeValidationNotification 允许时间消费者应用程序注册一个用于时间同步参数的通知对象 [SWS_TS_01016]。它是类 ara::tsync::SynchronizedTimeBaseConsumer 的组成部分,并通过头文件 ara/tsync/synchronized_time_base_consumer.h 包含 [SWS_TS_01016]。

用法与参数:

  • 参数:作为输入参数传递引用 ConsumerTimeBaseValidationNotification& timeBaseValidationNotification [SWS_TS_01016]。一旦该时间基准有新的已记录数据块就绪,该通知对象就会收到通知 [SWS_TS_01016]。
  • 返回值:该函数无返回值(void)[SWS_TS_01016]。
  • 基数:最多只能同时注册一个 Notifier;每次重新注册都会覆盖已有的 [SWS_TS_01016]。

错误处理与异常安全性:

该函数被声明为 noexcept 并指定为异常安全(exception safe)[SWS_TS_01016]。不返回任何特定错误码。

并发性与交互:

该方法被归类为非线程安全(non_threadsafe)[SWS_TS_01016]。因此,调用应用程序必须对并行访问进行外部同步。虽然该元素适用于消费者实例,但 [SWS_TS_01114] 代表了针对带有 ProviderTimeBaseValidationNotification 对象的提供者应用程序(ara::tsync::SynchronizedTimeBaseProvider)的功能对应项。

本文由 AI 基于 AUTOSAR Adaptive R25-11 规范生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Parameter (in)

ParameterBeschreibung
timeBaseValidationNotificationtime consumer application notification object that will be notified about the availability of a new data block recorded for the Time Base

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_01016
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01016@rel:R25-11#b70ce6d2
Content hash
b70ce6d2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01016
Status: valid/unmigrated Version: rel:R25-11#a5b91052 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_TS_01016@rel:R25-11#a5b91052
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#58ca60622026-09-30
  • R20-11rel:R20-11#94e8af522026-10-14
  • R21-11rel:R21-11#a7bbf4502026-10-14
  • R22-11rel:R22-11#d104689d2026-10-14
  • R23-11rel:R23-11#866500902026-10-14
  • R24-11rel:R24-11#a5b910522026-10-14
  • R25-11rel:R25-11#a5b910522026-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

函数 SynchronizedTimeBaseConsumer [SWS_TS_01001] Upstream: RS_TS_00005 原文尚未导入, RS_AP_00170, RS_AP_00173, RS_AP_00177

explicit SynchronizedTimeBaseConsumer (const ara::core::Instance Specifier &specifier) noexcept;

SynchronizedTimeBaseConsumer constructor.

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)PortInterfaceMap- A PortPrototype that is referenced by a pingViolation TimeSyncPortPrototypeToTimeBaseMapping needs to be typed by a SynchronizedTimeBaseConsumerInterface.

Parameter (in)

ParameterBeschreibung
specifierInstanceSpecifier to a PortPrototype typed by a SynchronizedTime BaseConsumerInterface

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

Record
AUTOSAR/AP/record/SWS_TS_01001
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01001@rel:R25-11#9b252fa9
Content hash
9b252fa9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01001
Status: valid/unmigrated Version: rel:R25-11#b8f6eeab 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_TS_01001@rel:R25-11#b8f6eeab
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#2a2978582026-09-30
  • R20-11rel:R20-11#825c5b6c2026-10-14
  • R21-11rel:R21-11#0cf5ea952026-10-14
  • R22-11rel:R22-11#501c46042026-10-14
  • R23-11rel:R23-11#3ebd810e2026-10-14
  • R24-11rel:R24-11#b8f6eeab2026-10-14
  • R25-11rel:R25-11#b8f6eeab2026-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

函数 SynchronizedTimeBaseConsumer [SWS_TS_01003] Upstream: RS_TS_00005 原文尚未导入

SynchronizedTimeBaseConsumer (SynchronizedTimeBaseConsumer &&stbc) noexcept;

Move constructor for SynchronizedTimeBaseConsumer.

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Parameter (in)

ParameterBeschreibung
stbcThe SynchronizedTimeBaseConsumer object to be moved.

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

Record
AUTOSAR/AP/record/SWS_TS_01003
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01003@rel:R25-11#5531bb3f
Content hash
5531bb3f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01003
Status: valid/unmigrated Version: rel:R25-11#6a1d0132 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_TS_01003@rel:R25-11#6a1d0132
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#85a4289c2026-09-30
  • R20-11rel:R20-11#3169bed62026-10-14
  • R21-11rel:R21-11#6d37fff52026-10-14
  • R22-11rel:R22-11#6bc2f9482026-10-14
  • R23-11rel:R23-11#7a78e6452026-10-14
  • R24-11rel:R24-11#ac21eae12026-10-14
  • R25-11rel:R25-11#6a1d01322026-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

函数 SynchronizedTimeBaseConsumer [SWS_TS_01005] Upstream: RS_TS_00005 原文尚未导入

SynchronizedTimeBaseConsumer (const SynchronizedTimeBaseConsumer &)=delete;

The copy constructor for SynchronizedTimeBaseConsumer shall not be used.

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer

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

Record
AUTOSAR/AP/record/SWS_TS_01005
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01005@rel:R25-11#dcfc3ee2
Content hash
dcfc3ee2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01005
Status: valid/unmigrated Version: rel:R25-11#a82edc8b 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_TS_01005@rel:R25-11#a82edc8b
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#ac9425dc2026-09-30
  • R20-11rel:R20-11#5dd184112026-10-14
  • R21-11rel:R21-11#5dd184112026-10-14
  • R22-11rel:R22-11#f849cbd82026-10-14
  • R23-11rel:R23-11#68d3b4fd2026-10-14
  • R24-11rel:R24-11#a82edc8b2026-10-14
  • R25-11rel:R25-11#a82edc8b2026-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

函数 UnregisterStatusChangeNotifier [SWS_TS_01011] Upstream: RS_TS_00034 原文尚未导入

void UnregisterStatusChangeNotifier () noexcept;

Unregister a notifier function which is called if a StatusFlag is changed (i.e. synchronization state, time leap or userdata). .

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 30af6349fa1b 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::tsync::SynchronizedTimeBaseConsumer 的方法 UnregisterStatusChangeNotifier(在头文件 #include "ara/tsync/synchronized_time_base_consumer.h" 中定义)用于注销先前注册的通知器函数 [SWS_TS_01011]。一旦 StatusFlag 发生更改,例如涉及同步状态、时间跳变(time leap)或用户数据(userdata),就会调用该通知器 [SWS_TS_01011]。

使用与签名

该函数的签名为 void UnregisterStatusChangeNotifier () noexcept;,不接收任何参数且不返回返回值 [SWS_TS_01011]。成功注销后,调用方将不再接收有关相应时间基准状态更改的进一步通知。

错误处理与异常行为

该函数声明为 exception safe 和 noexcept [SWS_TS_01011]。它在出错时不引发 C++ 异常,也不返回错误代码。如果在调用时未注册任何通知器函数,根据规范该调用大概不会产生任何效果。 问题 Q-6c7ff4cfdcf4dba8 (未决)

并发性与限制

关于调用上下文,UnregisterStatusChangeNotifier 被分类为 non_threadsafe [SWS_TS_01011]。因此,必须通过外部同步机制保护对 ara::tsync::SynchronizedTimeBaseConsumer 的同一实例的并行调用,以避免竞态条件。

本文基于 AUTOSAR Release R25-11 自动生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_01011
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01011@rel:R25-11#0e345fc5
Content hash
0e345fc5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01011
Status: valid/unmigrated Version: rel:R25-11#5878855a 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_TS_01011@rel:R25-11#5878855a
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#3f70620e2026-09-30
  • R20-11rel:R20-11#1b8212322026-10-14
  • R21-11rel:R21-11#3fe716a42026-10-14
  • R22-11rel:R22-11#fd954f8a2026-10-14
  • R23-11rel:R23-11#c8a9d3412026-10-14
  • R24-11rel:R24-11#5878855a2026-10-14
  • R25-11rel:R25-11#5878855a2026-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

函数 UnregisterSynchronizationStateChangeNotifier [SWS_TS_01013] Upstream: RS_TS_00034 原文尚未导入

void UnregisterSynchronizationStateChangeNotifier () noexcept;

Unregister a notifier function which is called if a synchronization state is changed. .

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 00f5416be2a3 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

方法UnregisterSynchronizationStateChangeNotifier属于类ara::tsync::SynchronizedTimeBaseConsumer,用于注销先前注册的在同步状态变更时调用的回调函数[SWS_TS_01013]。它在头文件ara/tsync/synchronized_time_base_consumer.h中定义,不接收传递参数,且不返回任何返回值[SWS_TS_01013]。

错误处理与异常安全性

该函数带有说明符noexcept,并被声明为异常安全(exception safe)[SWS_TS_01013]。因此它不抛出异常,并且由于返回类型为void,也不会返回任何错误码[SWS_TS_01013]。

并发性与限制

为该方法定义了属性non_threadsafe[SWS_TS_01013]。因此,在SynchronizedTimeBaseConsumer的同一实例上的并行调用必须通过应用程序的外部同步机制进行协调。注销操作可能同步进行;在函数完成之后,可能立即不再向已注销的通知器发送进一步的状态变更信号(解释)。 问题 Q-cc4b55c56144f0f0 (未决)

本使用说明基于 AUTOSAR Adaptive R25-11 规范。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_01013
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01013@rel:R25-11#e4962284
Content hash
e4962284
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01013
Status: valid/unmigrated Version: rel:R25-11#d7331e52 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_TS_01013@rel:R25-11#d7331e52
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#7c1adf652026-09-30
  • R20-11rel:R20-11#1de641d92026-10-14
  • R21-11rel:R21-11#e463acf32026-10-14
  • R22-11rel:R22-11#cc600fca2026-10-14
  • R23-11rel:R23-11#addb738a2026-10-14
  • R24-11rel:R24-11#d7331e522026-10-14
  • R25-11rel:R25-11#d7331e522026-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

函数 UnregisterTimeLeapNotifier [SWS_TS_01015] Upstream: RS_TS_00034 原文尚未导入

void UnregisterTimeLeapNotifier () noexcept;

Unregister a notifier function which is called if a time leap happened. .

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 4e9c88a1a616 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

方法 UnregisterTimeLeapNotifier 属于类 ara::tsync::SynchronizedTimeBaseConsumer,并通过头文件 ara/tsync/synchronized_time_base_consumer.h 声明 [SWS_TS_01015]。该方法用于取消注册先前注册的通知函数(Notifier),该通知函数在发生时间跳变(time leap)时被调用 [SWS_TS_01015]。

对于调用和接口语义,适用以下属性:

  • 调用上下文与参数:该函数无参数且无返回值(void)[SWS_TS_01015]。调用在 SynchronizedTimeBaseConsumer 的现有实例上同步进行。
  • 错误处理:该操作被声明为 noexcept,并指定为异常安全(exception safe)[SWS_TS_01015]。由于未规定错误代码或异常,从接口角度来看执行不会失败。解释:在缺少先前注册的 Notifier 的情况下进行调用,由于缺乏错误通道,推测可能静默且不产生任何效果。 问题 Q-431f60b308590f3c (未决)
  • 并发性:该方法被归类为非线程安全(non_threadsafe)[SWS_TS_01015]。如果从多个线程并发访问同一个 Consumer 实例,应用程序必须采用外部同步机制,以避免数据竞争。

在 Time Synchronization 模块(ts)内的相互协作中,取消注册可确保 Consumer 实例不再将同步时间基准的后续时间跳变转发给先前设置的回调函数 [SWS_TS_01015]。

本使用说明基于规范 R25-11 自动生成。

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_01015
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01015@rel:R25-11#b9d93b4f
Content hash
b9d93b4f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01015
Status: valid/unmigrated Version: rel:R25-11#4a0fabf7 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_TS_01015@rel:R25-11#4a0fabf7
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#c5721f162026-09-30
  • R20-11rel:R20-11#2b146ee32026-10-14
  • R21-11rel:R21-11#19fb6a2a2026-10-14
  • R22-11rel:R22-11#d54cf9a32026-10-14
  • R23-11rel:R23-11#0c5305c72026-10-14
  • R24-11rel:R24-11#f541f4912026-10-14
  • R25-11rel:R25-11#4a0fabf72026-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

函数 UnregisterTimePrecisionMeasurementNotifier [SWS_TS_01019] Upstream: RS_TS_00034 原文尚未导入

void UnregisterTimePrecisionMeasurementNotifier () noexcept;

Unregister a notifier function which is called if a new time precision snapshot is available. .

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: f62627da6e3f 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

根据 [SWS_TS_01019],函数 UnregisterTimePrecisionMeasurementNotifier 用于注销先前注册的通知函数,该函数在出现新的时间精度快照(time precision snapshot)时被调用。

调用与语义

该方法在头文件 ara/tsync/synchronized_time_base_consumer.h 中被声明为类 ara::tsync::SynchronizedTimeBaseConsumer 的成员函数([SWS_TS_01019])。调用为无参数进行,签名如 void UnregisterTimePrecisionMeasurementNotifier() noexcept,不提供返回值且不抛出异常(根据 [SWS_TS_01019] 为 exception safe)。

并发性与限制

关于线程安全性,该函数被明确指定为 non_threadsafe([SWS_TS_01019])。因此,调用方必须确保对 SynchronizedTimeBaseConsumer 的同一实例的调用免受并行访问的影响。该调用大概是同步进行的,因此在函数返回后,不应再通过先前注册的通知器触发快照的进一步通知。 问题 Q-f6eb9ea26348b348 (未决)

本文本由 AI 基于 AUTOSAR 规范创建。

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_01019
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01019@rel:R25-11#48bd4875
Content hash
48bd4875
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01019
Status: valid/unmigrated Version: rel:R25-11#c5847231 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_TS_01019@rel:R25-11#c5847231
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#9f2708282026-09-30
  • R20-11rel:R20-11#fcf60a7a2026-10-14
  • R21-11rel:R21-11#c461efce2026-10-14
  • R22-11rel:R22-11#ebf0c1c32026-10-14
  • R23-11rel:R23-11#d1ea280e2026-10-14
  • R24-11rel:R24-11#c58472312026-10-14
  • R25-11rel:R25-11#c58472312026-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

函数 UnregisterTimeValidationNotification [SWS_TS_01017] Upstream: RS_TS_00034 原文尚未导入, RS_TS_00030 原文尚未导入

void UnregisterTimeValidationNotification () noexcept;

Method that can be used by time consumer applications to receive time sync parameters. .

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b157fc991529 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用与签名

方法 UnregisterTimeValidationNotification 是类 ara::tsync::SynchronizedTimeBaseConsumer 的一部分,并通过头文件 ara/tsync/synchronized_time_base_consumer.h 引入 [SWS_TS_01017]。其签名为 void UnregisterTimeValidationNotification () noexcept; [SWS_TS_01017]。它不接收任何参数且没有返回值。根据规范,它用于时间同步参数上下文中的消费者应用程序 [SWS_TS_01017]。解释:根据标识符,该调用大概用于注销先前注册的时间有效性验证通知。 问题 Q-0b75b8b0d60da378 (未决)

错误处理与异常安全性

该操作被指定为 exception safe 并声明为 noexcept [SWS_TS_01017]。它不抛出异常,也不返回特定的错误代码 [SWS_TS_01017]。

并发性

规范将该方法标记为 non_threadsafe [SWS_TS_01017]。因此,在 SynchronizedTimeBaseConsumer 的同一实例上并发调用多个操作必须在应用端进行同步。

相互作用

虽然 [SWS_TS_01017] 规定了时间消费者的接口,但类 ara::tsync::SynchronizedTimeBaseProvider(头文件 ara/tsync/synchronized_time_base_provider.h)中存在一个类似的提供者方法 [SWS_TS_01115],在签名、线程安全性和异常安全性方面具有相同属性。

此使用说明基于 AUTOSAR 规范自动生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_TS_01017
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01017@rel:R25-11#43478eae
Content hash
43478eae
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01017
Status: valid/unmigrated Version: rel:R25-11#bc34fe58 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_TS_01017@rel:R25-11#bc34fe58
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#4b54cb202026-09-30
  • R20-11rel:R20-11#f6e616202026-10-14
  • R21-11rel:R21-11#f6e616202026-10-14
  • R22-11rel:R22-11#f51a94302026-10-14
  • R23-11rel:R23-11#8df80f822026-10-14
  • R24-11rel:R24-11#bc34fe582026-10-14
  • R25-11rel:R25-11#bc34fe582026-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_TS_01004] Upstream: RS_TS_00005 原文尚未导入

SynchronizedTimeBaseConsumer & operator= (SynchronizedTimeBaseConsumer &&stbc) & noexcept;

Move assignment operator for SynchronizedTimeBaseConsumer.

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

Parameter (in)

ParameterBeschreibung
stbcThe SynchronizedTimeBaseConsumer object to be moved.

Rückgabewert

TypBeschreibung
SynchronizedTimeBaseConsumer &The moved SynchronizedTimeBaseConsumer object.

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

Record
AUTOSAR/AP/record/SWS_TS_01004
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01004@rel:R25-11#64dcdfab
Content hash
64dcdfab
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01004
Status: valid/unmigrated Version: rel:R25-11#87525a6b 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_TS_01004@rel:R25-11#87525a6b
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#787987762026-09-30
  • R20-11rel:R20-11#653b48d52026-10-14
  • R21-11rel:R21-11#e1e684582026-10-14
  • R22-11rel:R22-11#845bb2bc2026-10-14
  • R23-11rel:R23-11#abf16e102026-10-14
  • R24-11rel:R24-11#61cb34952026-10-14
  • R25-11rel:R25-11#87525a6b2026-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_TS_01006] Upstream: RS_TS_00005 原文尚未导入

SynchronizedTimeBaseConsumer & operator= (const SynchronizedTimeBase Consumer &)=delete;

The copy assignment operator for SynchronizedTimeBaseConsumer shall not be used.

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer

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

Record
AUTOSAR/AP/record/SWS_TS_01006
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01006@rel:R25-11#72b1bc79
Content hash
72b1bc79
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01006
Status: valid/unmigrated Version: rel:R25-11#95f90379 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_TS_01006@rel:R25-11#95f90379
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#a8cb6bfc2026-09-30
  • R20-11rel:R20-11#c1b844c12026-10-14
  • R21-11rel:R21-11#034c20e22026-10-14
  • R22-11rel:R22-11#840cbbae2026-10-14
  • R23-11rel:R23-11#03c69fe92026-10-14
  • R24-11rel:R24-11#95f903792026-10-14
  • R25-11rel:R25-11#95f903792026-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

函数 ~SynchronizedTimeBaseConsumer [SWS_TS_01002] Upstream: RS_TS_00005 原文尚未导入

~SynchronizedTimeBaseConsumer () noexcept;

SynchronizedTimeBaseConsumer destructor.

Header-Datei#include "ara/tsync/synchronized_time_base_consumer.h"
Scopeclass ara::tsync::SynchronizedTimeBaseConsumer
Exception-Sicherheitexception safe
Thread-Sicherheitnon_threadsafe

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

Record
AUTOSAR/AP/record/SWS_TS_01002
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_TS_01002@rel:R25-11#e9815071
Content hash
e9815071
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_01002
Status: valid/unmigrated Version: rel:R25-11#cf7b75c9 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_TS_01002@rel:R25-11#cf7b75c9
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#7e91b1f82026-09-30
  • R20-11rel:R20-11#ed915b0d2026-10-14
  • R21-11rel:R21-11#ed915b0d2026-10-14
  • R22-11rel:R22-11#b9d0068b2026-10-14
  • R23-11rel:R23-11#5a14e4452026-10-14
  • R24-11rel:R24-11#cf7b75c92026-10-14
  • R25-11rel:R25-11#cf7b75c92026-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