mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
Internal change
PiperOrigin-RevId: 380080172
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
|
||||
#include "platform/api/atomic_reference.h"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
namespace windows {
|
||||
@@ -29,11 +31,14 @@ class AtomicUint32 : public api::AtomicUint32 {
|
||||
|
||||
// Atomically reads and returns stored value.
|
||||
// TODO(b/184975123): replace with real implementation.
|
||||
std::uint32_t Get() const override { return 0; };
|
||||
std::uint32_t Get() const override { return atomic_uint32_; };
|
||||
|
||||
// Atomically stores value.
|
||||
// TODO(b/184975123): replace with real implementation.
|
||||
void Set(std::uint32_t value) override {}
|
||||
void Set(std::uint32_t value) override { atomic_uint32_ = value; }
|
||||
|
||||
private:
|
||||
std::atomic_int32_t atomic_uint32_ = 0;
|
||||
};
|
||||
|
||||
} // namespace windows
|
||||
|
||||
Reference in New Issue
Block a user