DEENESPTFRRUARHIKOZHNL

فئة ara::per::SharedHandle

[SWS_PER_00362] Upstream: RS_PER_00002, RS_AP_00122, RS_AP_00140

template <typename T> class SharedHandle final {...};

Handle to a File Storage or Key-Value Storage. A SharedHandle is returned by the functions OpenFileStorage() and OpenKeyValueStorage() and can be passed between threads as needed. It provides the abstraction that is necessary to allow thread-safe implementation of OpenFile Storage() and OpenKeyValueStorage().

Header-Datei#include "ara/per/shared_handle.h"
Forwarding-Header#include "ara/per/per_fwd.h"
Scopenamespace ara::per

دليل المستخدممولَّد بالذكاء الاصطناعي

يُمكّن من الوصول الآمن خيطيًا إلى مخازن الملفات ومخازن المفتاح-القيمة عبر حدود الخيوط.
مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 7420a4e54761 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يُمكّن من الوصول الآمن خيطيًا إلى مخازن الملفات ومخازن المفتاح-القيمة عبر حدود الخيوط.

تُستخدم فئة القالب ara::per::SharedHandle كتجريد مؤشر ذكي لمخازن الملفات ومخازن المفتاح-القيمة لتمكين الوصول الآمن خيطيًا عبر حدود الخيوط. وبعد الحصول عليه عبر دوال المصنع، يجب التحقق من حالة صلاحية المقبض عبر operator bool() [SWS_PER_00398]، لأن استدعاء عوامل تشغيل أخرى على مقبض فارغ أو تم إبطال صلاحيته بواسطة عمليات النقل يؤدي إلى سلوك غير معرّف. وفي حين أن إلغاء إسناد الكائن المغلف آمن خيطيًا، فإن عمليات الإسناد وتدمير المقبض [SWS_PER_00568] على النسخة نفسها تتطلب مزامنة خارجية.

السياق

تمثل فئة القالب ara::per::SharedHandle في الوحدة per (Persistency) التابعة لـ AUTOSAR Adaptive Platform تجريد مؤشر ذكي لموارد التخزين الدائمة. وتُستخدم كنوع إرجاع موحد لدوال المصنع OpenFileStorage() وOpenKeyValueStorage(). وتتمثل المسؤولية الرئيسية للفئة في تنسيق الوصول إلى مخازن الملفات ومخازن المفتاح-القيمة عبر حدود الخيوط وتوفير التغليف المطلوب لتمكين تنفيذ آمن خيطيًا لإجراءات فتح التخزين والوصول إليه. وأطراف التفاعل هي خيوط التنفيذ من جانب التطبيق، وإدارة الاستدامة، بالإضافة إلى مورد التخزين المغلف في كل حالة T.

دورة الحياة

ينشأ SharedHandle عادةً عند فتح نسخة تخزين عبر واجهات المصنع لـ per. ومن خلال منشئ النسخ [SWS_PER_00369] وكذلك عامل إسناد النسخ [SWS_PER_00370]، يمكن مضاعفة المقبض، مما يمنح نُسخ مقابض متعددة وصولاً مشتركًا إلى الكائن الهدف نفسه. وإذا تم نقل مقبض باستخدام منشئ النقل [SWS_PER_00367] أو إسناد النقل [SWS_PER_00368]، فإن المقبض المصدر ينتقل إلى حالة غير صالحة ولا يجوز استخدامه بعد ذلك لعمليات الوصول إلى التخزين.

يحدد عامل التحويل الصريح operator bool() [SWS_PER_00398] الحالة الحالية للمقبض: فهو يُرجع true إذا تمت الإشارة إلى نسخة تخزين صالحة، وfalse إذا كان المقبض فارغًا. ويتم تحرير موارد المقبض عبر المدمر ~SharedHandle() [SWS_PER_00568]. تفسير: من المرجح أن يتم تحرير مورد التخزين الأساسي بمجرد تدمير آخر SharedHandle يشير إليه. سؤال Q-00a1798cf43e0ee6 (مفتوح)

فيما يتعلق بالتزامن، فإن عمليات الوصول إلى المورد المغلف عبر operator* ([SWS_PER_00402]، [SWS_PER_00403]) وoperator-> ([SWS_PER_00363]، [SWS_PER_00364]) بالإضافة إلى استعلام الحالة عبر operator bool() [SWS_PER_00398] آمنة خيطيًا. في المقابل، فإن عمليات الإسناد على المقبض نفسه ([SWS_PER_00368]، [SWS_PER_00370]) وتدميره [SWS_PER_00568] ليست آمنة خيطيًا وتتطلب مزامنة خارجية في حالة الاستخدام المشترك للمقبض.

handle_zustand Init Gueltig صالح (Valid) Init->Gueltig OpenFileStorage() / OpenKeyValueStorage() Gueltig->Gueltig Kopieren [SWS_PER_00369], [SWS_PER_00370] Leer Leer (Empty) Gueltig->Leer Move-Quelle [SWS_PER_00367], [SWS_PER_00368] Ende Gueltig->Ende ~SharedHandle() [SWS_PER_00568] Leer->Ende ~SharedHandle() [SWS_PER_00568]

مخطط الحالة: دورة الحياة وانتقالات الحالة لـ ara::per::SharedHandle بين الحالة الصالحة والفارغة. المصادر: [SWS_PER_00367]، [SWS_PER_00368]، [SWS_PER_00369]، [SWS_PER_00370]، [SWS_PER_00398]، [SWS_PER_00568]

مسار الاستخدام

يتضمن الاستخدام النموذجي لـ ara::per::SharedHandle الحصول المتحكم فيه والتحقق من الصلاحية والوصول إلى هياكل التخزين:

  1. الحصول على المقبض: يستدعي التطبيق OpenFileStorage() أو OpenKeyValueStorage() ويستلم SharedHandle<T>.
  2. التحقق من الصلاحية: يتحقق التطبيق قبل كل وصول من حالة المقبض عبر operator bool() [SWS_PER_00398].
  3. الوصول إلى المورد: يتم استدعاء دوال التخزين عن طريق إلغاء الإسناد باستخدام operator-> ([SWS_PER_00363]، [SWS_PER_00364]) أو operator* ([SWS_PER_00402]، [SWS_PER_00403]).
  4. التمرير: يمكن تمرير المقبض عند الحاجة إلى خيوط أخرى عن طريق النسخ ([SWS_PER_00369]، [SWS_PER_00370]) أو عن طريق النقل ([SWS_PER_00367]، [SWS_PER_00368]).
  5. نهاية دورة الحياة: عند مغادرة نطاق الرؤية، يقوم المدمر [SWS_PER_00568] بتفكيك المقبض.
تسلسل استخدام ara::per::SharedHandleالتطبيقPersistencySharedHandleStorageUse Case: الاستلام والتحقق من الصلاحيةOpenFileStorage()SharedHandle<T>operator bool() [SWS_PER_00398]true (صالح)Use Case: Speicherzugriffoperator->() [SWS_PER_00363]Methodenaufruf an TالنتيجةUse Case: Lebenszyklusende~SharedHandle() [SWS_PER_00568]

مخطط تسلسلي: سير عمليات الحصول والتحقق من الصلاحية واستدعاء الطرق وتفكيك SharedHandle. المصادر: [SWS_PER_00363]، [SWS_PER_00398]، [SWS_PER_00568]

سيناريوهات الأخطاء

تحدث حالات الخطأ الحرجة بشكل أساسي عند إجراء عمليات غير مسموح بها على مقابض فارغة أو ملغاة الصلاحية. ووفقاً لـ [SWS_PER_00398]، فإن استدعاء أي معاملات بخلاف operator bool() على مقبض فارغ يؤدي مباشرة إلى سلوك غير محدد (Undefined Behavior). وينطبق هذا بشكل خاص على مقابض المصدر بعد إجراء إنشاء بالنقل [SWS_PER_00367] أو تعيين بالنقل [SWS_PER_00368]، حيث يتم إلغاء صلاحيتها ويحظر الاستمرار في استخدامها.

لمنع السلوك غير المحدد، تتطلب المواصفة بشكل إلزامي التحقق من حالة المقبض عبر operator bool() قبل استدعاء معاملات أخرى ([SWS_PER_00367]، [SWS_PER_00368]). تم الإعلان عن جميع دوال الإنشاء ومعاملات التعيين ومعاملات الوصول ودالة الهدم بصفتها noexcept وحُددت بأنها آمنة ضد الاستثناءات («exception safe») ([SWS_PER_00367]، [SWS_PER_00368]، [SWS_PER_00369]، [SWS_PER_00370]، [SWS_PER_00363]، [SWS_PER_00364]، [SWS_PER_00402]، [SWS_PER_00403]، [SWS_PER_00398]، [SWS_PER_00568]). ولذلك فإن الحالة غير الصالحة لا تطلق استثناءً، بل يجب على المتصل اعتراضها بشكل إلزامي عبر القيمة المرجعة لـ operator bool().

يعتمد هذا الدليل على مواصفة AUTOSAR للوحدة per (Adaptive Platform، الإصدار R25-11) وقد تم إنشاؤه بواسطة مساعد تنظيم معتمد على الذكاء الاصطناعي.

خريطة الأعضاء

المُنشئات والمُتلف

2

مخطط الفئة

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

G nara__per__SharedHandle980 SharedHandle + SharedHandle() + operator=() + ~SharedHandle() + operatorbool() + operator*() + operator->()

عرض التفاصيل

اختر عنصرًا من المخطط.

المُنشئات والمُتلف

SharedHandle دالة 2

Move constructor for SharedHandle. The source handle object is invalidated and cannot be used anymore. The operator bool() shall be used to check the state of a handle object before using any other operators of the handle object.

التحميلات الزائدة SharedHandle 2
SharedHandle (SharedHandle &&sh) noexcept; SWS_PER_00367
SharedHandle (const SharedHandle &sh) noexcept; SWS_PER_00369
~SharedHandle دالة

Destructor for SharedHandle.

~SharedHandle () noexcept;

المعاملات

operator* دالة 2

Non-constant dereference operator.

التحميلات الزائدة * 2
T & operator* () noexcept; SWS_PER_00402
const T & operator* () const noexcept; SWS_PER_00403
operator-> دالة 2

Non-constant arrow operator.

التحميلات الزائدة -> 2
T * operator-> () noexcept; SWS_PER_00363
const T * operator-> () const noexcept; SWS_PER_00364
operator= دالة 2

Move assignment operator for SharedHandle. The source handle object is invalidated and cannot be used anymore. The operator bool() shall be used to check the state of a handle object before using any other operators of the handle object.

التحميلات الزائدة = 2
SharedHandle & operator= (SharedHandle &&sh) & noexcept; SWS_PER_00368
SharedHandle & operator= (const SharedHandle &sh) & noexcept; SWS_PER_00370
operatorbool دالة

Handle state. True if the handle represents a valid object of the templated class, False if the handle is empty (e.g. after a move operation). Using other operators than bool() of an empty handle will result in undefined behavior.

explicit operator bool () const noexcept;

توثيق الدوال

دالة SharedHandle [SWS_PER_00367] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00121, RS_AP_00129, RS_AP_00135, RS_AP_00145, RS_AP_00159

SharedHandle (SharedHandle &&sh) noexcept;

Move constructor for SharedHandle. The source handle object is invalidated and cannot be used anymore. The operator bool() shall be used to check the state of a handle object before using any other operators of the handle object.

Header-Datei#include "ara/per/shared_handle.h"
Scopeclass ara::per::SharedHandle
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
shThe SharedHandle object to be moved.

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

Record
AUTOSAR/AP/record/SWS_PER_00367
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00367@rel:R25-11#39249294
Content hash
39249294
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00367
Status: valid/unmigrated Version: rel:R25-11#baf6a972 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_PER_00367@rel:R25-11#baf6a972
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c6b5785d2026-09-30
  • R19-11rel:R19-11#61682ff62026-10-14
  • R20-11rel:R20-11#feee1b5f2026-10-14
  • R21-11rel:R21-11#a723d9eb2026-10-14
  • R22-11rel:R22-11#a01e63662026-10-14
  • R23-11rel:R23-11#c6715fc12026-10-14
  • R24-11rel:R24-11#11aacf592026-10-14
  • R25-11rel:R25-11#baf6a9722026-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

دالة SharedHandle [SWS_PER_00369] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00121, RS_AP_00129, RS_AP_00135, RS_AP_00145, RS_AP_00159

SharedHandle (const SharedHandle &sh) noexcept;

Copy constructor for SharedHandle.

Header-Datei#include "ara/per/shared_handle.h"
Scopeclass ara::per::SharedHandle
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
shThe SharedHandle object to be copied.

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

Record
AUTOSAR/AP/record/SWS_PER_00369
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00369@rel:R25-11#0fe50330
Content hash
0fe50330
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00369
Status: valid/unmigrated Version: rel:R25-11#2fc92783 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_PER_00369@rel:R25-11#2fc92783
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b3eb49e52026-09-30
  • R19-11rel:R19-11#e9a54ca92026-10-14
  • R20-11rel:R20-11#42ab36a92026-10-14
  • R21-11rel:R21-11#42ab36a92026-10-14
  • R22-11rel:R22-11#17047f412026-10-14
  • R23-11rel:R23-11#5c3ad8ec2026-10-14
  • R24-11rel:R24-11#1d1eaeab2026-10-14
  • R25-11rel:R25-11#2fc927832026-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_PER_00402] Upstream: RS_PER_00001, RS_PER_00002, RS_PER_00003, RS_AP_00119, RS_AP_00129, RS_AP_00159

T & operator* () noexcept;

Non-constant dereference operator.

Header-Datei#include "ara/per/shared_handle.h"
Scopeclass ara::per::SharedHandle
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
T&A reference to the SharedHandle object.

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

Record
AUTOSAR/AP/record/SWS_PER_00402
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00402@rel:R25-11#bf0d3d9e
Content hash
bf0d3d9e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00402
Status: valid/unmigrated Version: rel:R25-11#57896558 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_PER_00402@rel:R25-11#57896558
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#0230eb7e2026-09-30
  • R19-11rel:R19-11#c44f13ab2026-10-14
  • R20-11rel:R20-11#a17d07312026-10-14
  • R21-11rel:R21-11#a17d07312026-10-14
  • R22-11rel:R22-11#8ce1201b2026-10-14
  • R23-11rel:R23-11#7b133f712026-10-14
  • R24-11rel:R24-11#578965582026-10-14
  • R25-11rel:R25-11#578965582026-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_PER_00403] Upstream: RS_PER_00001, RS_PER_00002, RS_PER_00003, RS_AP_00119, RS_AP_00129, RS_AP_00159

const T & operator* () const noexcept;

Constant dereference operator.

Header-Datei#include "ara/per/shared_handle.h"
Scopeclass ara::per::SharedHandle
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
const T &A constant reference to the SharedHandle object.

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

Record
AUTOSAR/AP/record/SWS_PER_00403
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00403@rel:R25-11#e2a89a9a
Content hash
e2a89a9a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00403
Status: valid/unmigrated Version: rel:R25-11#78070564 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_PER_00403@rel:R25-11#78070564
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#9b7262392026-09-30
  • R19-11rel:R19-11#6d2f89fd2026-10-14
  • R20-11rel:R20-11#5ba93d692026-10-14
  • R21-11rel:R21-11#340cf29e2026-10-14
  • R22-11rel:R22-11#d61050d72026-10-14
  • R23-11rel:R23-11#fa9449332026-10-14
  • R24-11rel:R24-11#780705642026-10-14
  • R25-11rel:R25-11#780705642026-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_PER_00363] Upstream: RS_PER_00001, RS_PER_00002, RS_PER_00003, RS_AP_00119, RS_AP_00129, RS_AP_00159

T * operator-> () noexcept;

Non-constant arrow operator.

Header-Datei#include "ara/per/shared_handle.h"
Scopeclass ara::per::SharedHandle
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
T*A pointer to the SharedHandle object.

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

Record
AUTOSAR/AP/record/SWS_PER_00363
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00363@rel:R25-11#5206d553
Content hash
5206d553
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00363
Status: valid/unmigrated Version: rel:R25-11#c0487fc0 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_PER_00363@rel:R25-11#c0487fc0
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e0d8ebf82026-09-30
  • R19-11rel:R19-11#1b3905802026-10-14
  • R20-11rel:R20-11#c2e557d82026-10-14
  • R21-11rel:R21-11#296dba682026-10-14
  • R22-11rel:R22-11#04f451bb2026-10-14
  • R23-11rel:R23-11#0ae983872026-10-14
  • R24-11rel:R24-11#c0487fc02026-10-14
  • R25-11rel:R25-11#c0487fc02026-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_PER_00364] Upstream: RS_PER_00001, RS_PER_00002, RS_PER_00003, RS_AP_00119, RS_AP_00129, RS_AP_00159

const T * operator-> () const noexcept;

Constant arrow operator.

Header-Datei#include "ara/per/shared_handle.h"
Scopeclass ara::per::SharedHandle
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
const T *A constant pointer to the SharedHandle object.

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

Record
AUTOSAR/AP/record/SWS_PER_00364
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00364@rel:R25-11#8ca4f2c0
Content hash
8ca4f2c0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00364
Status: valid/unmigrated Version: rel:R25-11#d9c790a2 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_PER_00364@rel:R25-11#d9c790a2
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#478012352026-09-30
  • R19-11rel:R19-11#9cb165252026-10-14
  • R20-11rel:R20-11#28a967bb2026-10-14
  • R21-11rel:R21-11#3b6443842026-10-14
  • R22-11rel:R22-11#d63d40332026-10-14
  • R23-11rel:R23-11#d4e20ee62026-10-14
  • R24-11rel:R24-11#d9c790a22026-10-14
  • R25-11rel:R25-11#d9c790a22026-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_PER_00368] Upstream: RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00135, RS_AP_00145, RS_AP_00153, RS_AP_00159

SharedHandle & operator= (SharedHandle &&sh) & noexcept;

Move assignment operator for SharedHandle. The source handle object is invalidated and cannot be used anymore. The operator bool() shall be used to check the state of a handle object before using any other operators of the handle object.

Header-Datei#include "ara/per/shared_handle.h"
Scopeclass ara::per::SharedHandle
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
shThe SharedHandle object to be moved.

Rückgabewert

TypBeschreibung
SharedHandle &The moved SharedHandle object.

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

Record
AUTOSAR/AP/record/SWS_PER_00368
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00368@rel:R25-11#3db1fcef
Content hash
3db1fcef
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00368
Status: valid/unmigrated Version: rel:R25-11#7d51c2da 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_PER_00368@rel:R25-11#7d51c2da
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#531ab7712026-09-30
  • R19-11rel:R19-11#c02471c72026-10-14
  • R20-11rel:R20-11#05a98b6e2026-10-14
  • R21-11rel:R21-11#05a98b6e2026-10-14
  • R22-11rel:R22-11#245042672026-10-14
  • R23-11rel:R23-11#722c19a12026-10-14
  • R24-11rel:R24-11#7d51c2da2026-10-14
  • R25-11rel:R25-11#7d51c2da2026-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_PER_00370] Upstream: RS_PER_00004, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00135, RS_AP_00145, RS_AP_00153, RS_AP_00159

SharedHandle & operator= (const SharedHandle &sh) & noexcept;

Copy assignment operator for SharedHandle.

Header-Datei#include "ara/per/shared_handle.h"
Scopeclass ara::per::SharedHandle
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
shThe SharedHandle object to be copied.

Rückgabewert

TypBeschreibung
SharedHandle &The copied SharedHandle object.

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

Record
AUTOSAR/AP/record/SWS_PER_00370
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00370@rel:R25-11#8b3edc70
Content hash
8b3edc70
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00370
Status: valid/unmigrated Version: rel:R25-11#43114280 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_PER_00370@rel:R25-11#43114280
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#bfd2507a2026-09-30
  • R19-11rel:R19-11#4b0f581b2026-10-14
  • R20-11rel:R20-11#5a5c5fd62026-10-14
  • R21-11rel:R21-11#4e8059bf2026-10-14
  • R22-11rel:R22-11#0381e9832026-10-14
  • R23-11rel:R23-11#16530bc42026-10-14
  • R24-11rel:R24-11#431142802026-10-14
  • R25-11rel:R25-11#431142802026-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

دالة operatorbool [SWS_PER_00398] Upstream: RS_PER_00001, RS_PER_00002, RS_PER_00003, RS_AP_00119, RS_AP_00129, RS_AP_00159

explicit operator bool () const noexcept;

Handle state. True if the handle represents a valid object of the templated class, False if the handle is empty (e.g. after a move operation). Using other operators than bool() of an empty handle will result in undefined behavior.

Header-Datei#include "ara/per/shared_handle.h"
Scopeclass ara::per::SharedHandle
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
boolFalse if the handle is empty, otherwise true.

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

Record
AUTOSAR/AP/record/SWS_PER_00398
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00398@rel:R25-11#d513ed48
Content hash
d513ed48
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00398
Status: valid/unmigrated Version: rel:R25-11#74aa499c 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_PER_00398@rel:R25-11#74aa499c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4bc08a422026-09-30
  • R19-11rel:R19-11#9f6113032026-10-14
  • R20-11rel:R20-11#a52f48632026-10-14
  • R21-11rel:R21-11#a52f48632026-10-14
  • R22-11rel:R22-11#b6a326f62026-10-14
  • R23-11rel:R23-11#c602d61d2026-10-14
  • R24-11rel:R24-11#74aa499c2026-10-14
  • R25-11rel:R25-11#74aa499c2026-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

دالة ~SharedHandle [SWS_PER_00568] Upstream: RS_PER_00004, RS_AP_00120, RS_AP_00129, RS_AP_00134, RS_AP_00145, RS_AP_00159

~SharedHandle () noexcept;

Destructor for SharedHandle.

Header-Datei#include "ara/per/shared_handle.h"
Scopeclass ara::per::SharedHandle
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_PER_00568
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00568@rel:R25-11#0e1de58d
Content hash
0e1de58d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00568
Status: valid/unmigrated Version: rel:R25-11#0b0e9470 Versionshistorie & Revisions (1 transition, 4 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_PER_00568@rel:R25-11#0b0e9470
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#7153aa7a2026-09-30
  • R23-11rel:R23-11#3a952a352026-10-14
  • R24-11rel:R24-11#0b0e94702026-10-14
  • R25-11rel:R25-11#0b0e94702026-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