Public Member Functions | Private Attributes | List of all members
absl::Notification Class Reference

#include <notification.h>

Public Member Functions

bool HasBeenNotified () const
 
 Notification ()
 
 Notification (bool prenotify)
 
 Notification (const Notification &)=delete
 
void Notify ()
 
Notificationoperator= (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_
 

Detailed Description

Definition at line 64 of file notification.h.

Constructor & Destructor Documentation

◆ Notification() [1/3]

absl::Notification::Notification ( )
inline

Definition at line 67 of file notification.h.

◆ Notification() [2/3]

absl::Notification::Notification ( bool  prenotify)
inlineexplicit

Definition at line 68 of file notification.h.

◆ Notification() [3/3]

absl::Notification::Notification ( const Notification )
delete

◆ ~Notification()

absl::Notification::~Notification ( )

Definition at line 41 of file notification.cc.

Member Function Documentation

◆ HasBeenNotified()

bool absl::Notification::HasBeenNotified ( ) const

Definition at line 52 of file notification.cc.

◆ Notify()

void absl::Notification::Notify ( )

Definition at line 26 of file notification.cc.

◆ operator=()

Notification& absl::Notification::operator= ( const Notification )
delete

◆ WaitForNotification()

void absl::Notification::WaitForNotification ( ) const

Definition at line 56 of file notification.cc.

◆ WaitForNotificationWithDeadline()

bool absl::Notification::WaitForNotificationWithDeadline ( absl::Time  deadline) const

Definition at line 75 of file notification.cc.

◆ WaitForNotificationWithTimeout()

bool absl::Notification::WaitForNotificationWithTimeout ( absl::Duration  timeout) const

Definition at line 64 of file notification.cc.

Member Data Documentation

◆ mutex_

Mutex absl::Notification::mutex_
mutableprivate

Definition at line 108 of file notification.h.

◆ notified_yet_

std::atomic<bool> absl::Notification::notified_yet_
private

Definition at line 109 of file notification.h.


The documentation for this class was generated from the following files:


abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:22