Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::ImageAccessorWaitLock Struct Reference

Wait-lock structure allowing ImageAccessors to wait for each other. More...

#include <mitkImageAccessorBase.h>

Collaboration diagram for mitk::ImageAccessorWaitLock:

Public Attributes

unsigned int m_WaiterCount
 Number of ImageAccessors waiting for this accessor to be released. More...
 
std::mutex m_Mutex
 Mutex that other ImageAccessors lock on to wait for this accessor. More...
 

Detailed Description

Wait-lock structure allowing ImageAccessors to wait for each other.

When an ImageAccessor cannot immediately acquire access because another accessor holds an overlapping region, it increments the waiter count and waits on the mutex until the blocking accessor is released.

Definition at line 52 of file mitkImageAccessorBase.h.

Member Data Documentation

◆ m_Mutex

std::mutex mitk::ImageAccessorWaitLock::m_Mutex

Mutex that other ImageAccessors lock on to wait for this accessor.

Definition at line 58 of file mitkImageAccessorBase.h.

◆ m_WaiterCount

unsigned int mitk::ImageAccessorWaitLock::m_WaiterCount

Number of ImageAccessors waiting for this accessor to be released.

Definition at line 55 of file mitkImageAccessorBase.h.

Referenced by mitk::ImageAccessorBase::Increment().


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