#include <vlockguard.h>
Public Member Functions | |
VLockGuard (const QString &lockName, int stale=0, int timeout=0) | |
template<typename Alloc > | |
VLockGuard (const QString &lockName, Alloc a, int stale=0, int timeout=0) | |
template<typename Alloc , typename Delete > | |
VLockGuard (const QString &lockName, Alloc a, Delete d, int stale=0, int timeout=0) | |
const std::shared_ptr< Guarded > & | GetProtected () const |
int | GetLockError () const |
bool | IsLocked () const |
QString | GetLockFile () const |
Private Member Functions | |
bool | TryLock (const QString &lockName, int stale, int timeout) |
Private Attributes | |
std::shared_ptr< Guarded > | holder |
int | lockError |
QString | lockFile |
std::shared_ptr< QLockFile > | lock |
Definition at line 76 of file vlockguard.h.
|
explicit |
Definition at line 106 of file vlockguard.h.
References VLockGuard< Guarded >::holder, and VLockGuard< Guarded >::TryLock().
VLockGuard< Guarded >::VLockGuard | ( | const QString & | lockName, |
Alloc | a, | ||
int | stale = 0 , |
||
int | timeout = 0 |
||
) |
Definition at line 119 of file vlockguard.h.
References VLockGuard< Guarded >::holder, and VLockGuard< Guarded >::TryLock().
VLockGuard< Guarded >::VLockGuard | ( | const QString & | lockName, |
Alloc | a, | ||
Delete | d, | ||
int | stale = 0 , |
||
int | timeout = 0 |
||
) |
Definition at line 130 of file vlockguard.h.
References VLockGuard< Guarded >::holder, and VLockGuard< Guarded >::TryLock().
int VLockGuard< Guarded >::GetLockError |
Definition at line 148 of file vlockguard.h.
QString VLockGuard< Guarded >::GetLockFile |
Definition at line 162 of file vlockguard.h.
const std::shared_ptr< Guarded > & VLockGuard< Guarded >::GetProtected |
Definition at line 141 of file vlockguard.h.
Referenced by VApplication::ClearOldLogs().
bool VLockGuard< Guarded >::IsLocked |
Definition at line 155 of file vlockguard.h.
Referenced by TMainWindow::FileSaveAs(), MainWindow::GetUnlokedRestoreFileList(), TMainWindow::ImportFromPattern(), and MainWindow::SaveAs().
|
private |
Definition at line 169 of file vlockguard.h.
References NoError.
Referenced by VLockGuard< Guarded >::VLockGuard().
|
private |
Definition at line 95 of file vlockguard.h.
Referenced by VLockGuard< Guarded >::VLockGuard().
|
private |
Definition at line 98 of file vlockguard.h.
|
private |
Definition at line 96 of file vlockguard.h.
|
private |
Definition at line 97 of file vlockguard.h.