#include <notification.h>
Public Member Functions | |
bool | HasBeenNotified () const |
Notification () | |
Notification (bool prenotify) | |
Notification (const Notification &)=delete | |
void | Notify () |
Notification & | operator= (const Notification &)=delete |
void | WaitForNotification () const |
bool | WaitForNotificationWithDeadline (absl::Time deadline) const |
bool | WaitForNotificationWithTimeout (absl::Duration timeout) const |
~Notification () | |
Private Attributes | |
Mutex | mutex_ |
std::atomic< bool > | notified_yet_ |
Definition at line 64 of file notification.h.
|
inline |
Definition at line 67 of file notification.h.
|
inlineexplicit |
Definition at line 68 of file notification.h.
|
delete |
absl::Notification::~Notification | ( | ) |
Definition at line 41 of file notification.cc.
bool absl::Notification::HasBeenNotified | ( | ) | const |
Definition at line 52 of file notification.cc.
void absl::Notification::Notify | ( | ) |
Definition at line 26 of file notification.cc.
|
delete |
void absl::Notification::WaitForNotification | ( | ) | const |
Definition at line 56 of file notification.cc.
bool absl::Notification::WaitForNotificationWithDeadline | ( | absl::Time | deadline | ) | const |
Definition at line 75 of file notification.cc.
bool absl::Notification::WaitForNotificationWithTimeout | ( | absl::Duration | timeout | ) | const |
Definition at line 64 of file notification.cc.
|
mutableprivate |
Definition at line 108 of file notification.h.
|
private |
Definition at line 109 of file notification.h.