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

#include <blocking_counter.h>

Public Member Functions

 BlockingCounter (int initial_count)
 
 BlockingCounter (const BlockingCounter &)=delete
 
bool DecrementCount ()
 
BlockingCounteroperator= (const BlockingCounter &)=delete
 
void Wait ()
 

Private Member Functions

int count_ GUARDED_BY (lock_)
 
int num_waiting_ GUARDED_BY (lock_)
 

Private Attributes

Mutex lock_
 

Detailed Description

Definition at line 60 of file blocking_counter.h.

Constructor & Destructor Documentation

absl::BlockingCounter::BlockingCounter ( int  initial_count)
inlineexplicit

Definition at line 62 of file blocking_counter.h.

absl::BlockingCounter::BlockingCounter ( const BlockingCounter )
delete

Member Function Documentation

bool absl::BlockingCounter::DecrementCount ( )

Definition at line 26 of file blocking_counter.cc.

int count_ absl::BlockingCounter::GUARDED_BY ( lock_  )
private
int num_waiting_ absl::BlockingCounter::GUARDED_BY ( lock_  )
private
BlockingCounter& absl::BlockingCounter::operator= ( const BlockingCounter )
delete
void absl::BlockingCounter::Wait ( )

Definition at line 38 of file blocking_counter.cc.

Member Data Documentation

Mutex absl::BlockingCounter::lock_
private

Definition at line 90 of file blocking_counter.h.


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


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