clang-format

This commit is contained in:
Vibhav Pant
2023-08-30 13:21:30 +05:30
parent cb83656eab
commit c742bd3a37
83 changed files with 983 additions and 986 deletions
@@ -15,13 +15,13 @@
#ifndef PLATFORM_IMPL_LINUX_ATOMIC_BOOLEAN_H_
#define PLATFORM_IMPL_LINUX_ATOMIC_BOOLEAN_H_
#include "internal/platform/implementation/atomic_boolean.h"
#include <atomic>
#include "internal/platform/implementation/atomic_boolean.h"
namespace nearby {
namespace linux {
// A boolean value that may be updated atomically.
class AtomicBoolean : public api::AtomicBoolean {
public:
public:
AtomicBoolean(bool initial_value) : atomic_boolean_(initial_value) {}
~AtomicBoolean() override = default;
@@ -31,11 +31,11 @@ public:
// Atomically exchange original value with a new one. Return previous value.
bool Set(bool value) override { return atomic_boolean_.exchange(value); };
private:
private:
std::atomic_bool atomic_boolean_ = false;
};
} // namespace linux
} // namespace nearby
} // namespace linux
} // namespace nearby
#endif // PLATFORM_IMPL_LINUX_ATOMIC_BOOLEAN_H_
#endif // PLATFORM_IMPL_LINUX_ATOMIC_BOOLEAN_H_