summaryrefslogtreecommitdiff
path: root/abseil-cpp/absl/synchronization/notification.h
diff options
context:
space:
mode:
Diffstat (limited to 'abseil-cpp/absl/synchronization/notification.h')
-rw-r--r--abseil-cpp/absl/synchronization/notification.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/abseil-cpp/absl/synchronization/notification.h b/abseil-cpp/absl/synchronization/notification.h
index 9a354ca..8986d9a 100644
--- a/abseil-cpp/absl/synchronization/notification.h
+++ b/abseil-cpp/absl/synchronization/notification.h
@@ -22,7 +22,7 @@
// The `Notification` object maintains a private boolean "notified" state that
// transitions to `true` at most once. The `Notification` class provides the
// following primary member functions:
-// * `HasBeenNotified() `to query its state
+// * `HasBeenNotified()` to query its state
// * `WaitForNotification*()` to have threads wait until the "notified" state
// is `true`.
// * `Notify()` to set the notification's "notified" state to `true` and
@@ -52,7 +52,7 @@
#include <atomic>
-#include "absl/base/macros.h"
+#include "absl/base/attributes.h"
#include "absl/synchronization/mutex.h"
#include "absl/time/time.h"
@@ -74,7 +74,7 @@ class Notification {
// Notification::HasBeenNotified()
//
// Returns the value of the notification's internal "notified" state.
- bool HasBeenNotified() const {
+ ABSL_MUST_USE_RESULT bool HasBeenNotified() const {
return HasBeenNotifiedInternal(&this->notified_yet_);
}