diff options
author | Julian Andres Klode <jak@debian.org> | 2018-08-07 13:51:13 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2018-08-07 13:51:13 +0000 |
commit | e165588b0b9bc7c484c91e324b6b9418b0a29457 (patch) | |
tree | 0e20b60cfc4e79ceebe916cef692ffa8cf7ec875 /apt-pkg/pkgsystem.h | |
parent | 1ff389a5053e9ece91db8199afdcec16090a76b0 (diff) | |
parent | c2c8b4787b0882234ba2772ec7513afbf97b563a (diff) |
Merge branch 'bugfix/big-lock' into 'master'
Add support for dpkg frontend lock
See merge request apt-team/apt!11
Diffstat (limited to 'apt-pkg/pkgsystem.h')
-rw-r--r-- | apt-pkg/pkgsystem.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apt-pkg/pkgsystem.h b/apt-pkg/pkgsystem.h index 4b13072e2..b42070532 100644 --- a/apt-pkg/pkgsystem.h +++ b/apt-pkg/pkgsystem.h @@ -119,6 +119,18 @@ class pkgSystem pkgSystem(char const * const Label, pkgVersioningSystem * const VS); virtual ~pkgSystem(); + + + /* companions to Lock()/UnLock + * + * These functions can be called prior to calling dpkg to release an inner + * lock without releasing the overall outer lock, so that dpkg can run + * correctly but no other APT instance can acquire the system lock. + */ + bool LockInner(); + bool UnLockInner(bool NoErrors = false); + /// checks if the system is currently locked + bool IsLocked(); private: pkgSystemPrivate * const d; }; |