diff options
author | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-03-04 12:00:47 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-03-07 09:21:49 -0600 |
commit | 7e8c52d80793e4f406177e82602cdf293a8a7fa8 (patch) | |
tree | b4f2226c90619d33c8273705e3f05c3001f0d9b7 /host/tests/convert_test.cpp | |
parent | 89258f2d1855a3a9f3de1813c1ccc3faddfb7756 (diff) | |
download | uhd-7e8c52d80793e4f406177e82602cdf293a8a7fa8.tar.gz uhd-7e8c52d80793e4f406177e82602cdf293a8a7fa8.tar.bz2 uhd-7e8c52d80793e4f406177e82602cdf293a8a7fa8.zip |
tests: Atomicize counters in benchmark_rate
The counters that keep track of overruns, underruns, number of samples
transferred, etc., were not atomic. Thus, running benchmark_rate with
multiple threads would result in inaccurate statistics being reported at
the end of the run. This commit makes those counters atomic variables so
that they are updated properly.
Diffstat (limited to 'host/tests/convert_test.cpp')
0 files changed, 0 insertions, 0 deletions