Revision 7f93570a lib/jqueue.py
b/lib/jqueue.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007, 2008 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2008, 2009, 2010 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
855 | 855 |
# shared mode, including itself. In order not to acquire it at all |
856 | 856 |
# concurrency must be guaranteed with all code acquiring it in shared mode |
857 | 857 |
# and all code acquiring it exclusively. |
858 |
self._lock = locking.SharedLock() |
|
858 |
self._lock = locking.SharedLock("JobQueue")
|
|
859 | 859 |
|
860 | 860 |
self.acquire = self._lock.acquire |
861 | 861 |
self.release = self._lock.release |
Also available in: Unified diff