Krita Source Code Documentation
Loading...
Searching...
No Matches
KisImageBarrierLockAdapterImpl< ImagePointer, readOnly > Class Template Reference

#include <KisImageBarrierLock.h>

Public Member Functions

 KisImageBarrierLockAdapterImpl (ImagePointer image)
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 

Private Attributes

ImagePointer m_image
 

Detailed Description

template<typename ImagePointer, bool readOnly>
class KisImageBarrierLockAdapterImpl< ImagePointer, readOnly >

Definition at line 14 of file KisImageBarrierLock.h.

Constructor & Destructor Documentation

◆ KisImageBarrierLockAdapterImpl()

template<typename ImagePointer , bool readOnly>
KisImageBarrierLockAdapterImpl< ImagePointer, readOnly >::KisImageBarrierLockAdapterImpl ( ImagePointer image)
inline

Definition at line 16 of file KisImageBarrierLock.h.

17 : m_image(image)
18 {
19 }

Member Function Documentation

◆ lock()

template<typename ImagePointer , bool readOnly>
void KisImageBarrierLockAdapterImpl< ImagePointer, readOnly >::lock ( )
inline

Definition at line 21 of file KisImageBarrierLock.h.

21 {
22 m_image->barrierLock(readOnly);
23 }

References KisImageBarrierLockAdapterImpl< ImagePointer, readOnly >::m_image.

◆ try_lock()

template<typename ImagePointer , bool readOnly>
bool KisImageBarrierLockAdapterImpl< ImagePointer, readOnly >::try_lock ( )
inline

Definition at line 25 of file KisImageBarrierLock.h.

25 {
26 return m_image->tryBarrierLock(readOnly);
27 }

References KisImageBarrierLockAdapterImpl< ImagePointer, readOnly >::m_image.

◆ unlock()

template<typename ImagePointer , bool readOnly>
void KisImageBarrierLockAdapterImpl< ImagePointer, readOnly >::unlock ( )
inline

Definition at line 29 of file KisImageBarrierLock.h.

29 {
30 m_image->unlock();
31 }

References KisImageBarrierLockAdapterImpl< ImagePointer, readOnly >::m_image.

Member Data Documentation

◆ m_image

template<typename ImagePointer , bool readOnly>
ImagePointer KisImageBarrierLockAdapterImpl< ImagePointer, readOnly >::m_image
private

Definition at line 34 of file KisImageBarrierLock.h.


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