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

#include <notification.h>

Public Member Functions

bool HasBeenNotified () const
 
ABSL_MUST_USE_RESULT bool HasBeenNotified () const
 
 Notification ()
 
 Notification ()
 
 Notification (bool prenotify)
 
 Notification (bool prenotify)
 
 Notification (const Notification &)=delete
 
 Notification (const Notification &)=delete
 
void Notify ()
 
void Notify ()
 
Notificationoperator= (const Notification &)=delete
 
Notificationoperator= (const Notification &)=delete
 
void WaitForNotification () const
 
void WaitForNotification () const
 
bool WaitForNotificationWithDeadline (absl::Time deadline) const
 
bool WaitForNotificationWithDeadline (absl::Time deadline) const
 
bool WaitForNotificationWithTimeout (absl::Duration timeout) const
 
bool WaitForNotificationWithTimeout (absl::Duration timeout) const
 
 ~Notification ()
 
 ~Notification ()
 

Static Private Member Functions

static bool HasBeenNotifiedInternal (const std::atomic< bool > *notified_yet)
 
static bool HasBeenNotifiedInternal (const std::atomic< bool > *notified_yet)
 

Private Attributes

Mutex mutex_
 
std::atomic< boolnotified_yet_
 

Detailed Description

Definition at line 66 of file abseil-cpp/absl/synchronization/notification.h.

Constructor & Destructor Documentation

◆ Notification() [1/6]

absl::Notification::Notification ( )
inline

◆ Notification() [2/6]

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

◆ Notification() [3/6]

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

◆ ~Notification() [1/2]

absl::Notification::~Notification ( )

◆ Notification() [4/6]

absl::Notification::Notification ( )
inline

◆ Notification() [5/6]

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

◆ Notification() [6/6]

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

◆ ~Notification() [2/2]

absl::Notification::~Notification ( )

Member Function Documentation

◆ HasBeenNotified() [1/2]

bool absl::Notification::HasBeenNotified ( ) const
inline

◆ HasBeenNotified() [2/2]

ABSL_MUST_USE_RESULT bool absl::Notification::HasBeenNotified ( ) const
inline

◆ HasBeenNotifiedInternal() [1/2]

static bool absl::Notification::HasBeenNotifiedInternal ( const std::atomic< bool > *  notified_yet)
inlinestaticprivate

◆ HasBeenNotifiedInternal() [2/2]

static bool absl::Notification::HasBeenNotifiedInternal ( const std::atomic< bool > *  notified_yet)
inlinestaticprivate

◆ Notify() [1/2]

void absl::Notification::Notify ( )

◆ Notify() [2/2]

ABSL_NAMESPACE_BEGIN void absl::Notification::Notify ( )

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ WaitForNotification() [1/2]

void absl::Notification::WaitForNotification ( ) const

◆ WaitForNotification() [2/2]

void absl::Notification::WaitForNotification ( ) const

◆ WaitForNotificationWithDeadline() [1/2]

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

◆ WaitForNotificationWithDeadline() [2/2]

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

◆ WaitForNotificationWithTimeout() [1/2]

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

◆ WaitForNotificationWithTimeout() [2/2]

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

Member Data Documentation

◆ mutex_

Mutex absl::Notification::mutex_
mutableprivate

◆ notified_yet_

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

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:26