The interface of the readerwriterlock is a bit indirect - I need to create a RWLockFairD then create a gen_rlock and then use it as context manager or acquire/release. For inter-process locks, I will test it. For threads I will stick to fasteners, once you cut a new release.
This PR works for me. I don't know the source code too well to make an assessment, but copying the
lock.py
and using this adapter, I saw no errors:The interface of the
readerwriterlock
is a bit indirect - I need to create aRWLockFairD
then create agen_rlock
and then use it as context manager or acquire/release. For inter-process locks, I will test it. For threads I will stick to fasteners, once you cut a new release.Thanks and Cheers!