]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add docstring to BoundedSemaphore.release. 1354/head
authorA. Jesse Jiryu Davis <jesse@mongodb.com>
Sat, 28 Feb 2015 17:14:29 +0000 (12:14 -0500)
committerA. Jesse Jiryu Davis <jesse@mongodb.com>
Sat, 28 Feb 2015 17:14:29 +0000 (12:14 -0500)
tornado/locks.py

index 1367e1de89e8a25762a8b4c30067f199592be1d4..bd96d58ba836f0bf20e9345d11ca3f33ca554325 100644 (file)
@@ -238,6 +238,7 @@ class BoundedSemaphore(Semaphore):
         self._initial_value = value
 
     def release(self):
+        """Increment the counter and wake one waiter."""
         if self._value >= self._initial_value:
             raise ValueError("Semaphore released too many times")
         super(BoundedSemaphore, self).release()