summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgsystem.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2020-02-26 20:28:47 +0000
committerJulian Andres Klode <jak@debian.org>2020-02-26 20:28:47 +0000
commitb71b6802fe64723117bce6d91495a8af98ac528a (patch)
treeebb655eb7496799009b672c39799f670a596eb3e /apt-pkg/pkgsystem.h
parentbe22f24669bb6731b5835dc0e1b459d821683a9c (diff)
parent93e1565796b61eb44bec39f50e09a34cbe090178 (diff)
Merge branch 'pu/wait-lock' into 'master'
Pu/wait lock See merge request apt-team/apt!109
Diffstat (limited to 'apt-pkg/pkgsystem.h')
-rw-r--r--apt-pkg/pkgsystem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/pkgsystem.h b/apt-pkg/pkgsystem.h
index dca5747c1..10065d0ce 100644
--- a/apt-pkg/pkgsystem.h
+++ b/apt-pkg/pkgsystem.h
@@ -46,6 +46,7 @@ class pkgPackageManager;
class pkgVersioningSystem;
class Configuration;
class pkgIndexFile;
+class OpProgress;
class pkgSystemPrivate;
class APT_PUBLIC pkgSystem
@@ -62,7 +63,7 @@ class APT_PUBLIC pkgSystem
/* Prevent other programs from touching shared data not covered by
other locks (cache or state locks) */
- virtual bool Lock() = 0;
+ virtual bool Lock(OpProgress *const Progress = nullptr) = 0;
virtual bool UnLock(bool NoErrors = false) = 0;
/* Various helper classes to interface with specific bits of this
@@ -124,7 +125,7 @@ class APT_PUBLIC pkgSystem
* lock without releasing the overall outer lock, so that dpkg can run
* correctly but no other APT instance can acquire the system lock.
*/
- virtual bool LockInner() = 0;
+ virtual bool LockInner(OpProgress *const Progress = 0, int timeOutSec = 0) = 0;
virtual bool UnLockInner(bool NoErrors = false) = 0;
/// checks if the system is currently locked
virtual bool IsLocked() = 0;