[concurrency-interest] StampedLock

Zhong Yu zhong.j.yu at gmail.com
Fri Oct 12 16:17:54 EDT 2012


The example calls optimisticRead()

   double distanceFromOriginV2() { // combines code paths
     for (long stamp = sl.optimisticRead(); ; stamp = sl.readLock()) {

but method optimisticRead() isn't defined?

On Fri, Oct 12, 2012 at 9:19 AM, Doug Lea <dl at cs.oswego.edu> wrote:
>
> As promised (several months ago) an initial version of
> class jsr166e.StampedLock is now available. This is
> a combined write/read/optimistic lock that has some nice
> properties and good performance. For description, see
>
> http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166edocs/jsr166e/StampedLock.html
> And see the usual links from
>   http://gee.cs.oswego.edu/dl/concurrency-interest/index.html
> for jsr166e jars and sources.
>
> Reports about usage experiences would be very welcome!
>
> SequenceLock is now moved to "jsr166e.extra" and no longer
> a candidate for inclusion in JDK8.
>
> -Doug
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest


More information about the Concurrency-interest mailing list