digiKam
Loading...
Searching...
No Matches
Digikam::BdEngineBackendPrivate::ErrorLocker Class Reference

#include <dbenginebackend_p.h>

+ Inheritance diagram for Digikam::BdEngineBackendPrivate::ErrorLocker:

Public Member Functions

 ErrorLocker (BdEngineBackendPrivate *const d)
 
void finishAcquire ()
 
void wait ()
 
bool wait (unsigned long time=ULONG_MAX)
 

Protected Attributes

QWaitCondition *const condVar = nullptr
 
int count = 0
 
BdEngineBackendPrivate *const d = nullptr
 
QMutex *const mutex = nullptr
 

Constructor & Destructor Documentation

◆ ErrorLocker()

Digikam::BdEngineBackendPrivate::ErrorLocker::ErrorLocker ( BdEngineBackendPrivate *const  d)
explicit

Member Function Documentation

◆ finishAcquire()

void Digikam::BdEngineBackendPrivate::AbstractUnlocker::finishAcquire ( )
inherited

◆ wait() [1/2]

void Digikam::BdEngineBackendPrivate::ErrorLocker::wait ( )

This suspends the current thread if the query status as set by setFlag() is Wait and until the thread is woken with wakeAll(). The CoreDbAccess mutex will be unlocked while waiting.

References Digikam::BdEngineBackend::Wait.

Referenced by Digikam::BdEngineBackendPrivate::checkOperationStatus(), and Digikam::BdEngineBackendPrivate::handleWithErrorHandler().

◆ wait() [2/2]

bool Digikam::BdEngineBackendPrivate::AbstractWaitingUnlocker::wait ( unsigned long  time = ULONG_MAX)
inherited

Member Data Documentation

◆ condVar

QWaitCondition* const Digikam::BdEngineBackendPrivate::AbstractWaitingUnlocker::condVar = nullptr
protectedinherited

◆ count

int Digikam::BdEngineBackendPrivate::AbstractUnlocker::count = 0
protectedinherited

◆ d

BdEngineBackendPrivate* const Digikam::BdEngineBackendPrivate::AbstractUnlocker::d = nullptr
protectedinherited

◆ mutex

QMutex* const Digikam::BdEngineBackendPrivate::AbstractWaitingUnlocker::mutex = nullptr
protectedinherited

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