mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Fix initialization of atomics.
This commit is contained in:
parent
d2b2e1deb0
commit
766bf45a2b
@ -47,10 +47,12 @@ struct UnsupportedVersion : public std::exception
|
|||||||
|
|
||||||
struct LoadProgress
|
struct LoadProgress
|
||||||
{
|
{
|
||||||
std::atomic<uint64_t> total = 0;
|
LoadProgress() : total( 0 ), progress( 0 ), subTotal( 0 ), subProgress( 0 ) {}
|
||||||
std::atomic<uint64_t> progress = 0;
|
|
||||||
std::atomic<uint64_t> subTotal = 0;
|
std::atomic<uint64_t> total;
|
||||||
std::atomic<uint64_t> subProgress = 0;
|
std::atomic<uint64_t> progress;
|
||||||
|
std::atomic<uint64_t> subTotal;
|
||||||
|
std::atomic<uint64_t> subProgress;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Worker
|
class Worker
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user