BioDynaMo  v1.05.120-25dc9790
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:
[legend]
Collaboration diagram for bdm::UniformGridEnvironment::GridNeighborMutexBuilder:
[legend]

Classes

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 540 of file uniform_grid_environment.h.

Constructor & Destructor Documentation

◆ ~GridNeighborMutexBuilder()

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

Member Function Documentation

◆ GetMutex()

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

◆ Update()

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

Definition at line 595 of file uniform_grid_environment.h.

Member Data Documentation

◆ mutexes_

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

one mutex for each box in UniformGridEnvironment::boxes_

Definition at line 605 of file uniform_grid_environment.h.


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