Krita Source Code Documentation
Loading...
Searching...
No Matches
KisLockFrameGenerationLockAdapter Class Reference

#include <KisLockFrameGenerationLock.h>

Public Member Functions

 KisLockFrameGenerationLockAdapter (KisImageAnimationInterface *interface)
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 

Private Attributes

KisImageAnimationInterfacem_interface {nullptr}
 

Detailed Description

A RAII-based locker for calling animationInterface->lock/unlockFrameGeneration(), which acquires the lock for the exclusive frame generation process.

Definition at line 20 of file KisLockFrameGenerationLock.h.

Constructor & Destructor Documentation

◆ KisLockFrameGenerationLockAdapter()

KisLockFrameGenerationLockAdapter::KisLockFrameGenerationLockAdapter ( KisImageAnimationInterface * interface)

Definition at line 12 of file KisLockFrameGenerationLock.cpp.

13 : m_interface(interface)
14{
15}

Member Function Documentation

◆ lock()

void KisLockFrameGenerationLockAdapter::lock ( )

◆ try_lock()

bool KisLockFrameGenerationLockAdapter::try_lock ( )

◆ unlock()

void KisLockFrameGenerationLockAdapter::unlock ( )

Member Data Documentation

◆ m_interface

KisImageAnimationInterface* KisLockFrameGenerationLockAdapter::m_interface {nullptr}
private

Definition at line 30 of file KisLockFrameGenerationLock.h.

30{nullptr};

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