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

◆ BlockingCounter() [1/2]

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

Definition at line 62 of file blocking_counter.h.

◆ BlockingCounter() [2/2]

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

Member Function Documentation

◆ DecrementCount()

bool absl::BlockingCounter::DecrementCount ( )

Definition at line 26 of file blocking_counter.cc.

◆ GUARDED_BY() [1/2]

int count_ absl::BlockingCounter::GUARDED_BY ( lock_  )
private

◆ GUARDED_BY() [2/2]

int num_waiting_ absl::BlockingCounter::GUARDED_BY ( lock_  )
private

◆ operator=()

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

◆ Wait()

void absl::BlockingCounter::Wait ( )

Definition at line 38 of file blocking_counter.cc.

Member Data Documentation

◆ lock_

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 Mon Feb 28 2022 21:31:22