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

#include <barrier.h>

Public Member Functions

 Barrier (int num_threads)
 
 Barrier (const Barrier &)=delete
 
bool Block ()
 
Barrieroperator= (const Barrier &)=delete
 

Private Member Functions

int num_to_block_ GUARDED_BY (lock_)
 
int num_to_exit_ GUARDED_BY (lock_)
 

Private Attributes

Mutex lock_
 

Detailed Description

Definition at line 49 of file barrier.h.

Constructor & Destructor Documentation

◆ Barrier() [1/2]

absl::Barrier::Barrier ( int  num_threads)
inlineexplicit

Definition at line 52 of file barrier.h.

◆ Barrier() [2/2]

absl::Barrier::Barrier ( const Barrier )
delete

Member Function Documentation

◆ Block()

bool absl::Barrier::Block ( )

Definition at line 27 of file barrier.cc.

◆ GUARDED_BY() [1/2]

int num_to_block_ absl::Barrier::GUARDED_BY ( lock_  )
private

◆ GUARDED_BY() [2/2]

int num_to_exit_ absl::Barrier::GUARDED_BY ( lock_  )
private

◆ operator=()

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

Member Data Documentation

◆ lock_

Mutex absl::Barrier::lock_
private

Definition at line 71 of file barrier.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