[concurrency-interest] Atomicity of clearing of WeakReferences

Karnok Dávid karnok at sztaki.hu
Wed Jul 15 02:48:31 EDT 2009


Composition over inheritance? Have the WR support for an internal cleanup
context object (maybe in an internal WR too)?

 

David

 

> If you need to clean up after the referent, you don't have the object
around anymore, so you store any state necessary for the cleanup in the
WeakReference subclass.
>
> Bob  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20090715/34f4a672/attachment-0001.html>


More information about the Concurrency-interest mailing list