Lima2 API Serialization
With a Tango DS serialization model set to NO_SYNC
we need to make sure that the API calls are properly serialized at our level. Probably that a mutex in the control
, receiver
generic implementations would be enough.
class receiver
{
public:
/// Prepare acquisition (e.g. allocate buffers)
auto prepare_acq(acq_params_t const& acq_params)
{
const std::lock_guard<std::mutex> lck(m_api_mutex);
...
}
private:
std::mutex m_api_mutex; //<! Serialize API calls