SMART-Lab/smartdispatch — pull request #31 by MarcCote (2014-09-19 14:52:19+00:00)
Title: Add a simple but efficient lock contextmanager

To be merged after PR #30.

To use:
```python
from smartdispatch.utils import open_and_lock
with open_and_lock("/tmp/test.txt", 'w') ad f:
f.write("Exclusive writing. Awesome!")
```