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)
 
 Barrier (int num_threads)
 
 Barrier (int num_threads)
 
void removeThread () EXCLUDES(lock_)
 
void removeThread () EXCLUDES(lock_)
 
void removeThread () EXCLUDES(lock_)
 
bool wait () EXCLUDES(lock_)
 
bool wait () EXCLUDES(lock_)
 
bool wait () EXCLUDES(lock_)
 

Private Member Functions

bool createBarrier (MutexLock &ml) REQUIRES(lock_)
 
bool createBarrier (MutexLock &ml) REQUIRES(lock_)
 
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 benchmark/src/mutex.h.

Constructor & Destructor Documentation

◆ Barrier() [1/3]

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

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

◆ Barrier() [2/3]

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

◆ Barrier() [3/3]

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

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

Member Function Documentation

◆ createBarrier() [1/3]

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

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

◆ createBarrier() [2/3]

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

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

◆ createBarrier() [3/3]

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

◆ removeThread() [1/3]

void benchmark::Barrier::removeThread ( )
inline

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

◆ removeThread() [2/3]

void benchmark::Barrier::removeThread ( )
inline

◆ removeThread() [3/3]

void benchmark::Barrier::removeThread ( )
inline

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

◆ wait() [1/3]

bool benchmark::Barrier::wait ( )
inline

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

◆ wait() [2/3]

bool benchmark::Barrier::wait ( )
inline

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

◆ wait() [3/3]

bool benchmark::Barrier::wait ( )
inline

Member Data Documentation

◆ entered_

int benchmark::Barrier::entered_ = 0
private

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

◆ lock_

Mutex benchmark::Barrier::lock_
private

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

◆ phase_condition_

Condition benchmark::Barrier::phase_condition_
private

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

◆ phase_number_

int benchmark::Barrier::phase_number_ = 0
private

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

◆ running_threads_

int benchmark::Barrier::running_threads_
private

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


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:57