BioDynaMo  v1.03.58-27764645
Classes | Public Member Functions | Private Attributes | List of all members
bdm::UniformGridEnvironment::GridNeighborMutexBuilder Class Reference

#include <uniform_grid_environment.h>

Inheritance diagram for bdm::UniformGridEnvironment::GridNeighborMutexBuilder:
Collaboration diagram for bdm::UniformGridEnvironment::GridNeighborMutexBuilder:


class  GridNeighborMutex
struct  MutexWrapper

Public Member Functions

 ~GridNeighborMutexBuilder () override=default
void Update ()
NeighborMutexGetMutex (uint64_t box_idx) override
- Public Member Functions inherited from bdm::Environment::NeighborMutexBuilder
virtual ~NeighborMutexBuilder ()=default

Private Attributes

std::vector< MutexWrappermutexes_
 one mutex for each box in UniformGridEnvironment::boxes_ More...

Detailed Description

This class ensures thread-safety for the InPlaceExecutionContext for the case that an agent modifies its neighbors.

Definition at line 536 of file uniform_grid_environment.h.

Constructor & Destructor Documentation

◆ ~GridNeighborMutexBuilder()

bdm::UniformGridEnvironment::GridNeighborMutexBuilder::~GridNeighborMutexBuilder ( )

Member Function Documentation

◆ GetMutex()

NeighborMutex * bdm::GridNeighborMutexBuilder::GetMutex ( uint64_t  box_idx)

◆ Update()

void bdm::UniformGridEnvironment::GridNeighborMutexBuilder::Update ( )

Definition at line 591 of file uniform_grid_environment.h.

Member Data Documentation

◆ mutexes_

std::vector<MutexWrapper> bdm::UniformGridEnvironment::GridNeighborMutexBuilder::mutexes_

one mutex for each box in UniformGridEnvironment::boxes_

Definition at line 601 of file uniform_grid_environment.h.

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