24#if !defined(AC4770A4B46740C1A3C4AEA7DB977164)
25#define AC4770A4B46740C1A3C4AEA7DB977164
27#include <miktex/Core/config.h>
34#include <miktex/Util/PathName>
36MIKTEX_CORE_BEGIN_NAMESPACE;
42 virtual MIKTEXTHISCALL
~LockFile()
noexcept = 0;
48 virtual bool MIKTEXTHISCALL
TryLock(std::chrono::milliseconds timeout) = 0;
52 virtual void MIKTEXTHISCALL
Unlock() = 0;
61MIKTEX_CORE_END_NAMESPACE;
An instance of this class provides an interface to a lock file.
Definition: LockFile.h:40
static std::unique_ptr< LockFile > Create(const MiKTeX::Util::PathName &path)
virtual bool TryLock(std::chrono::milliseconds timeout)=0
virtual void Unlock()=0
Removes the lock file.
Instances of this class can be used to store path names.
Definition: PathName.h:73