diff options
Diffstat (limited to 'absl/synchronization/mutex.h')
-rw-r--r-- | absl/synchronization/mutex.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/absl/synchronization/mutex.h b/absl/synchronization/mutex.h index 6459053b..ff4747b5 100644 --- a/absl/synchronization/mutex.h +++ b/absl/synchronization/mutex.h @@ -833,10 +833,10 @@ class Condition { #endif // Function with which to evaluate callbacks and/or arguments. - bool (*const eval_)(const Condition*); + bool (*eval_)(const Condition*) = nullptr; // Either an argument for a function call or an object for a method call. - void* const arg_; + void* arg_ = nullptr; // Various functions eval_ can point to: static bool CallVoidPtrFunction(const Condition*); @@ -859,10 +859,8 @@ class Condition { std::memcpy(callback, callback_, sizeof(*callback)); } - static bool AlwaysTrue(const Condition*) { return true; } - // Used only to create kTrue. - constexpr Condition() : eval_(AlwaysTrue), arg_(nullptr) {} + constexpr Condition() = default; }; // ----------------------------------------------------------------------------- |