Skip to content

Releases: e-chip/redis-rwlock

Project structure update

27 Oct 08:10
7c6ba1e
Compare
Choose a tag to compare

For future updates is is required to update project structure.
Updated readme with verbose description of mutex modes and parameters.

In new projects consider using pkg/rwlock package instead of rwlock as it may be eventually removed.

Configurable reader lock mode

02 Oct 13:59
e79ac72
Compare
Choose a tag to compare

Added optional lock mode which changes the behavior of the reader lock.
In ModePreferWriter reader lock retreats if writer has placed an intention to acquire the lock.
In ModePreferReader reader lock ignores writer's intention and tries to acquire the lock.

Application can use both modes on single lock depending on the developer intention.
It is recommended to use ModePreferWriter in case when you have rare but very important writes. Otherwise prefer ModePreferReader.

Initial release with modules support

31 Oct 09:29
Compare
Choose a tag to compare
Fix #4

Remove v1 from module name.