Does EMA library fully support concurrent submit() calls?

GayathriDeviKK
GayathriDeviKK Newcomer
edited August 14 in EMA

In our application, multiple coroutines (parallel execution) may call OmmConsumer.submit() at the same time, each with its own freshly created PostMsg (built using EMA). Could simultaneous submit calls on the same OmmConsumer instances cause the MDS receive merged or corrupted field data from different posts?

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @GayathriDeviKK

    Thank you for reaching out to us.

    EMA is both thread-safe and thread-aware.

    Upon reviewing the EMA C++ source code, I found that the submit() method is thread-safe due to the locking mechanism implemented in OmmConsumer, which ensures that only one thread can access this method at a time.