You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce a StampedLockFactory similar to XMutexFactory, except instead of generating a synchronization monitor, it would generate a StampedLock instance. This would be useful for applications that could benefit from the performance characteristics of StampedLock: https://blog.overops.com/java-8-stampedlocks-vs-readwritelocks-and-synchronized/ . It would also be useful for applications that need read-locking vs. write-locking semantics, i.e. allowing multiple concurrent readers provided there are no writers.
Optional: Also introduce a ReadWriteLockFactory which would be useful for applications that prefer the simpler ReadWriteLock interface, require re-entrant capabilities, or need to define whether or not the lock is fair.
The text was updated successfully, but these errors were encountered:
l0s
added a commit
to l0s/xsync
that referenced
this issue
Jun 22, 2020
This adds two new factories that generate `StampedLock` and
`ReadWriteLock` instances for applications that require more granular
control over locking. The unit tests duplicate the verifications in
`XMutexFactoryImplTest` and also introduce verifications specific to the
synchronisation mechanisms.
Addresses: antkorwin#9
This adds two new factories that generate `StampedLock` and
`ReadWriteLock` instances for applications that require more granular
control over locking. The unit tests duplicate the verifications in
`XMutexFactoryImplTest` and also introduce verifications specific to the
synchronisation mechanisms.
Addresses: antkorwin#9
Introduce a
StampedLockFactory
similar toXMutexFactory
, except instead of generating a synchronization monitor, it would generate aStampedLock
instance. This would be useful for applications that could benefit from the performance characteristics ofStampedLock
: https://blog.overops.com/java-8-stampedlocks-vs-readwritelocks-and-synchronized/ . It would also be useful for applications that need read-locking vs. write-locking semantics, i.e. allowing multiple concurrent readers provided there are no writers.Optional: Also introduce a
ReadWriteLockFactory
which would be useful for applications that prefer the simplerReadWriteLock
interface, require re-entrant capabilities, or need to define whether or not the lock is fair.The text was updated successfully, but these errors were encountered: