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

Public Member Functions

int Get () const
 
void Increment ()
 
 ThreadSafeCounter ()
 
void WaitUntilGreaterOrEqual (int n)
 

Private Attributes

int count_
 
Mutex mutex_
 

Detailed Description

Definition at line 26 of file notification_test.cc.

Constructor & Destructor Documentation

absl::ThreadSafeCounter::ThreadSafeCounter ( )
inline

Definition at line 28 of file notification_test.cc.

Member Function Documentation

int absl::ThreadSafeCounter::Get ( ) const
inline

Definition at line 35 of file notification_test.cc.

void absl::ThreadSafeCounter::Increment ( )
inline

Definition at line 30 of file notification_test.cc.

void absl::ThreadSafeCounter::WaitUntilGreaterOrEqual ( int  n)
inline

Definition at line 40 of file notification_test.cc.

Member Data Documentation

int absl::ThreadSafeCounter::count_
private

Definition at line 48 of file notification_test.cc.

Mutex absl::ThreadSafeCounter::mutex_
mutableprivate

Definition at line 47 of file notification_test.cc.


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


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:19:59