summaryrefslogtreecommitdiffstats
path: root/pym/portage/locks.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-13 00:23:34 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-13 00:23:34 -0700
commit58b184b441ff53c46cbb38eb695933d60c6624ad (patch)
tree21cbeaaf4a869b0f7ffba07cf5ae07d42695c1dd /pym/portage/locks.py
parent46243c16a2538e494d5b98e6f0d3ec17ad80d1b7 (diff)
downloadportage-58b184b441ff53c46cbb38eb695933d60c6624ad.tar.gz
portage-58b184b441ff53c46cbb38eb695933d60c6624ad.tar.bz2
portage-58b184b441ff53c46cbb38eb695933d60c6624ad.zip
Bug #336142 - Add support for using a thread to wait for locks inside
dblink.lockdb() so that the scheduler can concurrently service ipc calls in the main thread.
Diffstat (limited to 'pym/portage/locks.py')
-rw-r--r--pym/portage/locks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/locks.py b/pym/portage/locks.py
index ed20e30ca..00a50b818 100644
--- a/pym/portage/locks.py
+++ b/pym/portage/locks.py
@@ -30,8 +30,8 @@ HARDLINK_FD = -2
# so that it doesn't interfere with the status display.
_quiet = False
-def lockdir(mydir):
- return lockfile(mydir,wantnewlockfile=1)
+def lockdir(mydir, flags=0):
+ return lockfile(mydir, wantnewlockfile=1, flags=flags)
def unlockdir(mylock):
return unlockfile(mylock)