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

#include <mutex.h>

Public Member Functions

 CondVar ()
 
void EnableDebugLog (const char *name)
 
void Signal ()
 
void SignalAll ()
 
void Wait (Mutex *mu)
 
bool WaitWithDeadline (Mutex *mu, absl::Time deadline)
 
bool WaitWithTimeout (Mutex *mu, absl::Duration timeout)
 
 ~CondVar ()
 

Private Member Functions

 CondVar (const CondVar &)=delete
 
CondVaroperator= (const CondVar &)=delete
 
void Remove (base_internal::PerThreadSynch *s)
 
bool WaitCommon (Mutex *mutex, synchronization_internal::KernelTimeout t)
 
void Wakeup (base_internal::PerThreadSynch *w)
 

Private Attributes

std::atomic< intptr_t > cv_
 

Detailed Description

Definition at line 775 of file mutex.h.

Constructor & Destructor Documentation

◆ CondVar() [1/2]

absl::CondVar::CondVar ( )
inline

Definition at line 255 of file mutex_nonprod.cc.

◆ ~CondVar()

absl::CondVar::~CondVar ( )

Definition at line 257 of file mutex_nonprod.cc.

◆ CondVar() [2/2]

absl::CondVar::CondVar ( const CondVar )
privatedelete

Member Function Documentation

◆ EnableDebugLog()

void absl::CondVar::EnableDebugLog ( const char *  name)

Definition at line 274 of file mutex_nonprod.cc.

◆ operator=()

CondVar& absl::CondVar::operator= ( const CondVar )
privatedelete

◆ Remove()

void absl::CondVar::Remove ( base_internal::PerThreadSynch s)
private

Definition at line 2429 of file mutex.cc.

◆ Signal()

void absl::CondVar::Signal ( )

Definition at line 259 of file mutex_nonprod.cc.

◆ SignalAll()

void absl::CondVar::SignalAll ( )

Definition at line 261 of file mutex_nonprod.cc.

◆ Wait()

void absl::CondVar::Wait ( Mutex mu)

Definition at line 263 of file mutex_nonprod.cc.

◆ WaitCommon()

bool absl::CondVar::WaitCommon ( Mutex mutex,
synchronization_internal::KernelTimeout  t 
)
private

Definition at line 2509 of file mutex.cc.

◆ WaitWithDeadline()

bool absl::CondVar::WaitWithDeadline ( Mutex mu,
absl::Time  deadline 
)

Definition at line 265 of file mutex_nonprod.cc.

◆ WaitWithTimeout()

bool absl::CondVar::WaitWithTimeout ( Mutex mu,
absl::Duration  timeout 
)

Definition at line 270 of file mutex_nonprod.cc.

◆ Wakeup()

void absl::CondVar::Wakeup ( base_internal::PerThreadSynch w)
private

Definition at line 2576 of file mutex.cc.

Member Data Documentation

◆ cv_

std::atomic<intptr_t> absl::CondVar::cv_
private

Definition at line 848 of file mutex.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