Reads the serialized samples from underlying receive buffers and deserializes them.

Syntax

template <…>
ProcessedSamples amsr::socal::r20_11::events::ProxyEvent<…>::GetNewSamples(F&& f, std::size_t max_samples = std::numeric_limits<size_t>::max())

Returns

A reference to the event cache container.

Errors

ara::com::ComErrc::kMaxSamplesReached

All slots from visible sample cache are used.

 

Parameters

in

f

Callable to be invoked on every deserialized sample.

in

max_samples

Maximum number of samples that can be processed within this call.

Precondition

Subscribe() has been called.

Thread-safety, Reentrance, Result Delivery

  • Threadsafe : FALSE for same class instance, TRUE for different instances.
    This API can be called from event receive handler when subscription / unsubscription is requested in parallel from the application thread without the need of additional synchronization measures.
  • Reentrant : FALSE for same class instance, TRUE for different instances
  • Synchronous : TRUE