walberla::mpi::TokenizedScope Class Reference

Detailed Description

Object that starts tokenizing in constructor and ends tokenizing when going out of scope.

Usage:

{
mpi::TokenizedScope tokenizing ( 10 );
criticalFunction(); // maximal 10 processes execute that function simultaneously
}

#include <Tokenizing.h>

Public Member Functions

 TokenizedScope (uint_t nrOfTokens, MPI_Comm comm=MPI_COMM_WORLD)
 
 ~TokenizedScope ()
 

Private Attributes

Tokenizing t_
 

Constructor & Destructor Documentation

◆ TokenizedScope()

walberla::mpi::TokenizedScope::TokenizedScope ( uint_t  nrOfTokens,
MPI_Comm  comm = MPI_COMM_WORLD 
)
inline

◆ ~TokenizedScope()

walberla::mpi::TokenizedScope::~TokenizedScope ( )
inline

Member Data Documentation

◆ t_

Tokenizing walberla::mpi::TokenizedScope::t_
private

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