1
#include "kdsharedmemorylocker.h"
3
#if QT_VERSION >= 0x040400 || defined( DOXYGEN_RUN )
5
#include <QSharedMemory>
7
using namespace kdtools;
10
\class KDSharedMemoryLocker
12
\brief Exception-safe and convenient wrapper around QSharedMemory::lock()
16
* Constructor. Locks the shared memory segment \a mem.
17
* If another process has locking the segment, this constructor blocks
18
* until the lock is released. The memory segments needs to be properly created or attached.
20
KDSharedMemoryLocker::KDSharedMemoryLocker( QSharedMemory* mem )
27
* Destructor. Unlocks the shared memory segment associated with this
28
* KDSharedMemoryLocker.
30
KDSharedMemoryLocker::~KDSharedMemoryLocker()
37
static const EvalDialogChecker evalChecker( "KD Tools", false );