WiresmithTech / tedium

3 stars 1 forks source link

Define Concurrent Access Approach #22

Open JamesMc86 opened 1 year ago

JamesMc86 commented 1 year ago

LabVIEW ships with an example for TDMS concurrent access.

In this, parallel threads open the same TDMS file (with 2 TDMS references) and can read the data as soon as it is written.

My guess is this is enabled by the tdms_index file since each read could re-scan the tdms_index file - however we lack this.

For this to work we would need to rescan the file index on each read. This use case feels pretty unusual though and I'm reluctant to take the performance hit on every read.

Instead perhaps we have an explicit function to rescan the index or can we detect a change in file size efficiently enough?