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

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

Definition at line 52 of file barrier.h.

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

Member Function Documentation

bool absl::Barrier::Block ( )

Definition at line 27 of file barrier.cc.

int num_to_block_ absl::Barrier::GUARDED_BY ( lock_  )
private
int num_to_exit_ absl::Barrier::GUARDED_BY ( lock_  )
private
Barrier& absl::Barrier::operator= ( const Barrier )
delete

Member Data Documentation

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 Tue Jun 18 2019 19:44:38