MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / Update

Method Update

layers/sync/sync_stats.cpp:45–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43// adjust result of the atomic function by adding/subtracting one.
44
45void Value32::Update(uint32_t new_value) { u32.store(new_value); }
46uint32_t Value32::Add(uint32_t n) { return u32.fetch_add(n) + 1; }
47uint32_t Value32::Sub(uint32_t n) { return u32.fetch_sub(n) - 1; }
48

Callers 2

DoUpdateAccessStateMethod · 0.45
UpdateAccessStatsMethod · 0.45

Calls 6

atomic_fetch_maxFunction · 0.85
GetAccessContextFunction · 0.85
UpdateAccessMapStatsFunction · 0.85
UpdateMaxMethod · 0.80
UpdateStatsMethod · 0.45

Tested by

no test coverage detected