Allocate event data of unique ownership for sending out.

()-> AllocateResultType

Syntax

template <…>
::ara::com::SampleAllocateePtr<…>
socal::events::SkeletonEvent<…>::Allocate()

Returns

Result with the requested memory provided by the middleware or an error.

Errors

Error Message

Reason

ara::com::ComErrc::kAllocateUnsupportedWithSetup

Multiple provided service instances are present.

ara::com::ComErrc::kInvalidAPICall

The API is called in combination with PreAllocate()

ara::com::ComErrc::kServiceNotAvailable

Service was not offered.

ara::com::ComErrc::kSampleAllocationFailure

Memory allocation has failed in the backend.

Precondition

Thread-safety, Reentrance, Result Delivery

  • Threadsafe : FALSE for same class instance, TRUE for different instances
    FALSE against other APIs for same class instance.
    Not threadsafe against following APIs of the associated Skeleton instance:-
  • Reentrant : FALSE for same class instance, FALSE for different instances
  • Synchronous : TRUE