digiKam
Digikam::BdEngineBackendPrivate::ErrorLocker Class Reference
+ 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
 
int count
 
BdEngineBackendPrivate *const d
 
QMutex *const mutex
 

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
protectedinherited

◆ count

int Digikam::BdEngineBackendPrivate::AbstractUnlocker::count
protectedinherited

◆ d

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

◆ mutex

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

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