18#include <QtCore/private/qglobal_p.h>
19#include <QtCore/qlockfile.h>
20#include <QtCore/qfile.h>
22#include <qplatformdefs.h>
66 fd = _open_osfhandle(
intptr_t(
f->d_func()->fileHandle), 0);
68 fd =
f->d_func()->fileHandle;
70 QT_LSEEK(
fd, 0, SEEK_SET);
QLockFilePrivate(const QString &fn)
QLockFile::LockError tryLock_sys()
bool isApparentlyStale() const
static bool isProcessRunning(qint64 pid, const QString &appname)
std::chrono::milliseconds staleLockTime
static int getLockFileHandle(QLockFile *f)
static Q_CORE_EXPORT QString processNameByPid(qint64 pid)
QLockFile::LockError lockError
QByteArray lockFileContents() const
LockError
This enum describes the result of the last call to lock() or tryLock().
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.