[concurrency-interest] [Javamemorymodel-discussion]Fences.keepAlive

Doug Lea dl at cs.oswego.edu
Wed Jan 21 09:01:42 EST 2009


Mallikarjunaiah, Praveena wrote:
> Hi,
> 
> There is a typo in the example of WidgetHolder.
> 
> Fences.preStoreFence(this);  // "this" should be replaced with h.widget.
> 

Thanks; fixed.
Actually, this should be "h", because of the no call-by-ref issue:
You can't say preStoreFence(&h.widget) so must use h.

-Doug



More information about the Concurrency-interest mailing list