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 |
---|---|
| Multiple provided service instances are present. |
| The API is called in combination with PreAllocate() |
| Service was not offered. |
| Memory allocation has failed in the backend. |
Precondition
- Service must be offered before calling this API.
- PreAllocate() has not been called.
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