Commit 93410270 authored by Sam Rushing's avatar Sam Rushing

mutex: pep 343 'with' stmt support

parent 8799d1aa
......@@ -374,6 +374,10 @@ cdef class mutex:
# nothing to schedule
return False
# for 'with'
__enter__ = lock
def __exit__ (self, t, v, tb):
self.unlock()
# ===========================================================================
# Read/Write Lock
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment