함수 Allocate [SWS_CM_90438] Upstream: RS_CM_00201, RS_AP_00114, RS_AP_00115, RS_AP_00120
ara::com::SampleAllocateePtr< SampleType > Allocate ();
Allocating data for event transfer when Communication Management is responsible for the data.
메서드 Allocate은(는) Communication Management(ara::com)가 데이터 관리를 담당할 때 이벤트 데이터 전송을 위한 메모리를 할당하기 위해 이벤트에 대한 Skeleton 레벨에서 호출됩니다 ([SWS_CM_90438]; AUTOSAR_AP_EXP_ARAComAPI §5.4.1 “Skeleton Class API’s”; [SWS_CM_90438]). 이 메서드는 ara::com::SampleAllocateePtr<SampleType> 타입의 인스턴스를 반환합니다 ([SWS_CM_90438]). 이 포인터 타입은 개념적으로 std::unique_ptr<T>처럼 동작하므로 어느 시점에서든 하나의 주체만 포인터를 소유합니다 (ARAComAPI §6 “Event Allocate/Send sample Binding implementer hint”).
오류 처리 및 예외 안전성과 관련하여 Allocate은(는) not exception safe로 명시되어 있습니다 ([SWS_CM_90438]). 사양에는 두 가지 가능한 위반 사항(Violations)이 정의되어 있습니다:
SampleAllocationViolation: 데이터를 할당하기에 충분한 메모리 리소스가 없습니다 ([SWS_CM_90438]).AllocateUsageViolation: 사용자 정의 할당자를 통해 잘못 할당되었습니다 ([SWS_CM_90438]).
Allocate 이면의 개념은 주로 판독기와 기록기 간의 엄격한 동기화를 전제로 하는 공유 메모리 기반 IPC 전송을 중심으로 Zero-Copy 메커니즘을 지원하는 것을 목표로 합니다 (ARAComAPI §6 “Event Allocate/Send sample Binding implementer hint”). 구현자는 배포 시 데이터 타입이 바이너리 호환되도록 구성되지 않았거나 감지 로직에 의해 배제되는 경우 직렬화 요구사항으로 인해 Zero-Copy가 무효화될 수 있음을 유의해야 합니다 (ARAComAPI §6 “Event Allocate/Send sample Binding implementer hint”).
이벤트 전송과의 상호 작용에서 Allocate을(를) 통해 얻은 메모리 포인터는 Send(ara::com::SampleAllocateePtr<SampleType> data)에 전달됩니다 ([SWS_CM_90437]). Send 호출 후에는 Communication Management가 구독 중인 모든 애플리케이션에 데이터를 전송하면 서비스 애플리케이션은 더 이상 데이터에 접근해서는 안 됩니다 ([SWS_CM_90437]).
이 텍스트는 AI에 의해 작성되었으며 AUTOSAR 릴리스 R25-11의 사양 문서만을 기반으로 합니다.
구현자 가이드 준비 중 (복잡도 I2)
| Header-Datei | #include "<SiNamespaceDerivedDirectoryPath>/<SiShortname>_skeleton.h" |
|---|---|
| Scope | class <SI-Namespace>::skeleton:: events::<Event> |
| Exception-Sicherheit | not exception safe |
| Verletzungen (Violations) | SampleAllocation- Not enough memory resources can be allocated Violation AllocateUsageVio- The allocation was illegally done via custom allocator lation |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::com::Sample | A ara::com::SampleAllocateePtr to an event sample AllocateePtr< Sample Type > |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CM_90438- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CM_90438@rel:R25-11#fbd422e9- Content hash
fbd422e9- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_90438
Status: valid/unmigrated
Version: rel:R25-11#3059e6d8
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_CM_90438@rel:R25-11#3059e6d8
Recorded Revisions (8):
- R25-11
rel:R25-11#b02a325f2026-09-30 - R19-11
rel:R19-11#b404edd72026-10-14 - R20-11
rel:R20-11#8f3783f62026-10-14 - R21-11
rel:R21-11#a234befb2026-10-14 - R22-11
rel:R22-11#340e44dd2026-10-14 - R23-11
rel:R23-11#340e44dd2026-10-14 - R24-11
rel:R24-11#2e4120f42026-10-14 - R25-11
rel:R25-11#3059e6d82026-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 · 독일어 원문