Closed catb0t closed 1 year ago
A reader-writer lock is https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock
Same here. Nice that there is an article available about the theory behind it, but that still does not explain how this library is intended to be used.
I'll note that the README was rewritten with this question in mind, but I will keep this issue open until the documentation is improved as well.
Documentation is now pretty good :tada:
I was looking into the tests folder to try to find a code example I could work from, but it left me as baffled as the documentation.
Excerpted from class ReadWriteLockTest in test_lock.py:
Neither in the documentation nor in the testing code is it very clear, how to use this
ReaderWriterLock
to lock access to a resource? A filename, nor any sort of context is ever given to these functions.