[concurrency-interest] StampedLock

Doug Lea dl at cs.oswego.edu
Fri Oct 12 19:12:05 EDT 2012


On 10/12/12 16:17, Zhong Yu wrote:
> The example calls optimisticRead()
>
>     double distanceFromOriginV2() { // combines code paths
>       for (long stamp = sl.optimisticRead(); ; stamp = sl.readLock()) {
>

Thanks! This should be tryOptimisticRead(). Fixed.

-Doug

>>
>> 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!



More information about the Concurrency-interest mailing list