Skip to content

Commit

Permalink
Direct initialization of atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
dancazarin committed Sep 17, 2024
1 parent 349e7a1 commit 8dc66b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/kfr/cometa/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ namespace details

struct memory_statistics
{
std::atomic_uintptr_t allocation_count = ATOMIC_VAR_INIT(0);
std::atomic_uintptr_t allocation_size = ATOMIC_VAR_INIT(0);
std::atomic_uintptr_t deallocation_count = ATOMIC_VAR_INIT(0);
std::atomic_uintptr_t deallocation_size = ATOMIC_VAR_INIT(0);
std::atomic_uintptr_t allocation_count{ 0 };
std::atomic_uintptr_t allocation_size{ 0 };
std::atomic_uintptr_t deallocation_count{ 0 };
std::atomic_uintptr_t deallocation_size{ 0 };
};

inline memory_statistics& get_memory_statistics()
Expand Down

0 comments on commit 8dc66b4

Please sign in to comment.