Our broken global lock.
More...
Our broken global lock.
Definition at line 104 of file ZYppFactory.cc.
◆ ScopedGuard
◆ ZYppGlobalLock()
zypp::ZYppGlobalLock::ZYppGlobalLock |
( |
Pathname && |
lFilePath | ) |
|
|
inline |
◆ ~ZYppGlobalLock()
zypp::ZYppGlobalLock::~ZYppGlobalLock |
( |
| ) |
|
|
inline |
◆ lockerPid()
pid_t zypp::ZYppGlobalLock::lockerPid |
( |
| ) |
const |
|
inline |
◆ lockerName()
const std::string & zypp::ZYppGlobalLock::lockerName |
( |
| ) |
const |
|
inline |
◆ zyppLockFilePath()
const Pathname & zypp::ZYppGlobalLock::zyppLockFilePath |
( |
| ) |
const |
|
inline |
◆ accessLockFile()
Exception safe access to the lockfile.
shared_ptr< void > ScopedGuard
ScopedGuard accessLockFile()
Exception safe access to the lockfile.
Definition at line 161 of file ZYppFactory.cc.
◆ _openLockFile()
void zypp::ZYppGlobalLock::_openLockFile |
( |
| ) |
|
|
inlineprivate |
◆ _closeLockFile()
void zypp::ZYppGlobalLock::_closeLockFile |
( |
| ) |
|
|
inlineprivate |
◆ isProcessRunning()
bool zypp::ZYppGlobalLock::isProcessRunning |
( |
pid_t |
pid_r | ) |
|
|
inlineprivate |
◆ readLockFile()
pid_t zypp::ZYppGlobalLock::readLockFile |
( |
| ) |
|
|
inlineprivate |
◆ writeLockFile()
void zypp::ZYppGlobalLock::writeLockFile |
( |
| ) |
|
|
inlineprivate |
◆ safeCheckIsLocked()
bool zypp::ZYppGlobalLock::safeCheckIsLocked |
( |
| ) |
|
|
inlineprivate |
Expects the calling function to lock the access lock
Definition at line 252 of file ZYppFactory.cc.
◆ isZyppLocked()
bool zypp::ZYppGlobalLock::isZyppLocked |
( |
| ) |
|
|
inline |
◆ zyppLocked()
bool zypp::ZYppGlobalLock::zyppLocked |
( |
| ) |
|
|
inline |
Try to aquire a lock.
- Returns
true
if zypp is already locked by another process.
Definition at line 289 of file ZYppFactory.cc.
◆ _zyppLockFilePath
Pathname zypp::ZYppGlobalLock::_zyppLockFilePath |
|
private |
◆ _zyppLockFileLock
file_lock zypp::ZYppGlobalLock::_zyppLockFileLock |
|
private |
◆ _zyppLockFile
FILE* zypp::ZYppGlobalLock::_zyppLockFile |
|
private |
◆ _lockerPid
pid_t zypp::ZYppGlobalLock::_lockerPid |
|
private |
◆ _lockerName
std::string zypp::ZYppGlobalLock::_lockerName |
|
private |
◆ _cleanLock
bool zypp::ZYppGlobalLock::_cleanLock |
|
private |
The documentation for this class was generated from the following file: