13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
31
25
class CountedLock(object):
32
26
"""Decorator around a lock that makes it reentrant.
34
28
This can be used with any object that provides a basic Lock interface,
35
29
including LockDirs and OS file locks.
38
35
def __init__(self, real_lock):