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

#include <waiter.h>

Public Member Functions

void Init ()
 
Waiteroperator= (const Waiter &)=delete
 
void Poke ()
 
void Post ()
 
bool Wait (KernelTimeout t)
 
 Waiter ()=delete
 
 Waiter (const Waiter &)=delete
 

Static Public Member Functions

static WaiterGetWaiter (base_internal::ThreadIdentity *identity)
 

Static Public Attributes

static const int kIdlePeriods = 60
 

Private Attributes

pthread_cond_t cv_
 
pthread_mutex_t mu_
 
std::atomic< int > waiter_count_
 
std::atomic< int > wakeup_count_
 

Detailed Description

Definition at line 57 of file waiter.h.

Constructor & Destructor Documentation

absl::synchronization_internal::Waiter::Waiter ( )
delete
absl::synchronization_internal::Waiter::Waiter ( const Waiter )
delete

Member Function Documentation

static Waiter* absl::synchronization_internal::Waiter::GetWaiter ( base_internal::ThreadIdentity identity)
inlinestatic

Definition at line 82 of file waiter.h.

void absl::synchronization_internal::Waiter::Init ( )

Definition at line 125 of file waiter.cc.

Waiter& absl::synchronization_internal::Waiter::operator= ( const Waiter )
delete
void absl::synchronization_internal::Waiter::Poke ( )

Definition at line 165 of file waiter.cc.

void absl::synchronization_internal::Waiter::Post ( )

Definition at line 158 of file waiter.cc.

bool absl::synchronization_internal::Waiter::Wait ( KernelTimeout  t)

Definition at line 129 of file waiter.cc.

Member Data Documentation

pthread_cond_t absl::synchronization_internal::Waiter::cv_
private

Definition at line 108 of file waiter.h.

const int absl::synchronization_internal::Waiter::kIdlePeriods = 60
static

Definition at line 91 of file waiter.h.

pthread_mutex_t absl::synchronization_internal::Waiter::mu_
private

Definition at line 107 of file waiter.h.

std::atomic<int> absl::synchronization_internal::Waiter::waiter_count_
private

Definition at line 109 of file waiter.h.

std::atomic<int> absl::synchronization_internal::Waiter::wakeup_count_
private

Definition at line 110 of file waiter.h.


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


abseil_cpp
Author(s):
autogenerated on Tue Jun 18 2019 19:44:39