I am using libSDDS from the SDDSToolKit-devel RPM to read sdds files in c++ applications. It works very good - thanks again for the package.
Now I tried to use it in a multi threading application and get various SDDS errors when reading the same file with multiple threads at the same time.
Is there a way to do this thread-safe? I naively assumed reading a file parallelized is no problem.
Do you know which function(s) cause the problem? I basically create a new SDDS_TABLE in each thread and use functions like
- SDDS_InitializeInput()
- SDDS_ReadPage()
- SDDS_FilterRowsOfInterest()
- SDDS_GetValue()
- SDDS_GetParameterIndex()
- SDDS_GetParameterType()
- SDDS_GetParameterByIndex()
- SDDS_Terminate()