Public Member Functions | Private Member Functions | Private Attributes | List of all members
benchmark::Barrier Class Reference

#include <mutex.h>

Public Member Functions

 Barrier (int num_threads)
 
void removeThread () EXCLUDES(lock_)
 
bool wait () EXCLUDES(lock_)
 

Private Member Functions

bool createBarrier (MutexLock &ml) REQUIRES(lock_)
 

Private Attributes

int entered_ = 0
 
Mutex lock_
 
Condition phase_condition_
 
int phase_number_ = 0
 
int running_threads_
 

Detailed Description

Definition at line 99 of file protobuf/third_party/benchmark/src/mutex.h.

Constructor & Destructor Documentation

◆ Barrier()

benchmark::Barrier::Barrier ( int  num_threads)
inline

Definition at line 101 of file protobuf/third_party/benchmark/src/mutex.h.

Member Function Documentation

◆ createBarrier()

bool benchmark::Barrier::createBarrier ( MutexLock ml)
inlineprivate

Definition at line 132 of file protobuf/third_party/benchmark/src/mutex.h.

◆ removeThread()

void benchmark::Barrier::removeThread ( )
inline

Definition at line 114 of file protobuf/third_party/benchmark/src/mutex.h.

◆ wait()

bool benchmark::Barrier::wait ( )
inline

Definition at line 104 of file protobuf/third_party/benchmark/src/mutex.h.

Member Data Documentation

◆ entered_

int benchmark::Barrier::entered_ = 0
private

Definition at line 127 of file protobuf/third_party/benchmark/src/mutex.h.

◆ lock_

Mutex benchmark::Barrier::lock_
private

Definition at line 121 of file protobuf/third_party/benchmark/src/mutex.h.

◆ phase_condition_

Condition benchmark::Barrier::phase_condition_
private

Definition at line 122 of file protobuf/third_party/benchmark/src/mutex.h.

◆ phase_number_

int benchmark::Barrier::phase_number_ = 0
private

Definition at line 126 of file protobuf/third_party/benchmark/src/mutex.h.

◆ running_threads_

int benchmark::Barrier::running_threads_
private

Definition at line 123 of file protobuf/third_party/benchmark/src/mutex.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:06