Public Member Functions | |
int | Get () const |
void | Increment () |
ThreadSafeCounter () | |
void | WaitUntilGreaterOrEqual (int n) |
Private Attributes | |
int | count_ |
Mutex | mutex_ |
Definition at line 26 of file notification_test.cc.
absl::ThreadSafeCounter::ThreadSafeCounter | ( | ) | [inline] |
Definition at line 28 of file notification_test.cc.
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.
int absl::ThreadSafeCounter::count_ [private] |
Definition at line 48 of file notification_test.cc.
Mutex absl::ThreadSafeCounter::mutex_ [mutable, private] |
Definition at line 47 of file notification_test.cc.