Commit af0d3df9 authored by tqcq's avatar tqcq
Browse files

feat fix GUARDED_BY

parent 193826df
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -14,7 +14,8 @@
#if defined(GUARDED_BY)
#undef GUARDED_BY
#endif
#define GUARDED_BY(x) __attribute__((guarded_by(x)))

#define GUARDED_BY(x) THREAD_ANNOTATION_ATTRIBUTE__(guarded_by(x))

#if defined(__clang__)
#define EXCLUSIVE_TRYLOCK_FUNCTION(...) THREAD_ANNOTATION_ATTRIBUTE__(exclusive_trylock_function(__VA_ARGS__))
+2 −2
Original line number Diff line number Diff line
@@ -96,13 +96,13 @@ public:
    T &&value() &&
    {
        CheckHasValue();
        return **this;
        return std::move(**this);
    }

    T const &&value() const &&
    {
        CheckHasValue();
        return **this;
        return std::move(**this);
    }

    T &value_or(T &&val) &