Class sh::tools::UserDirLock

class sh::tools::UserDirLock

Locks the Shallot user directory during exclusive usage.

This lock is rather heavy-weight and should be used only if necessary!

Public Functions

UserDirLock()

Is intended to be directly constructed from everywhere.

~UserDirLock()

Private Members

bool dounlock
QString slockpref
QString slockfile

Private Static Attributes

QThread *currentThread = 0
QMutex mutex