Link r/w lock to the actual class

This commit is contained in:
Joshua Harlow
2015-06-06 23:42:20 -07:00
parent fbe817bb25
commit 6bb5017f6a

View File

@@ -40,7 +40,8 @@ def read_locked(*args, **kwargs):
NOTE(harlowja): if no attribute name is provided then by default the
attribute named '_lock' is looked for (this attribute is expected to be
the rw-lock object) in the instance object this decorator is attached to.
a :py:class:`.ReaderWriterLock`) in the instance object this decorator
is attached to.
"""
def decorator(f):
@@ -70,7 +71,8 @@ def write_locked(*args, **kwargs):
NOTE(harlowja): if no attribute name is provided then by default the
attribute named '_lock' is looked for (this attribute is expected to be
the rw-lock object) in the instance object this decorator is attached to.
a :py:class:`.ReaderWriterLock` object) in the instance object this
decorator is attached to.
"""
def decorator(f):