Skip to content

Commit 7cc3a82

Browse files
xavierarteagacodebot
authored andcommitted
phy: fix TSAN in unit test
1 parent 27c9a88 commit 7cc3a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unittests/phy/support/resource_grid_test_doubles.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class resource_grid_writer_spy : public resource_grid_writer
209209
/// Defines the maximum allowed error when asserting the resource grid.
210210
static constexpr float ASSERT_MAX_ERROR = 1e-6;
211211
/// Counts the number of times a \c put method is called.
212-
unsigned count = 0;
212+
std::atomic<unsigned> count = {0};
213213
/// Maximum number of ports.
214214
unsigned max_ports;
215215
/// Maximum number of OFDM symbols.

0 commit comments

Comments
 (0)