[Base] Fix unitialized variable in threading test
This commit is contained in:
parent
4fb5244176
commit
2d9462f02b
|
@ -154,7 +154,7 @@ TEST_CASE("HighResolutionTimer") {
|
||||||
// Time the actual sleep duration
|
// Time the actual sleep duration
|
||||||
{
|
{
|
||||||
const auto interval = 50ms;
|
const auto interval = 50ms;
|
||||||
std::atomic<uint64_t> counter;
|
std::atomic<uint64_t> counter(0);
|
||||||
auto start = std::chrono::steady_clock::now();
|
auto start = std::chrono::steady_clock::now();
|
||||||
auto cb = [&counter] { ++counter; };
|
auto cb = [&counter] { ++counter; };
|
||||||
auto pTimer = HighResolutionTimer::CreateRepeating(interval, cb);
|
auto pTimer = HighResolutionTimer::CreateRepeating(interval, cb);
|
||||||
|
|
Loading…
Reference in New Issue