--
NMgXMnNEudCIuHdwFCK
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2008-01-10 at 07:55 +0900, MenTaLguY wrote:
> > This hash may very well hold onto the last reference to the data
> > structures I'm trying to store, so it'd be a pity if they got garbage
> > collected... 
> 
> The last non-weak reference should be from the fiber's Thread.current[]
> map, which goes away when the fiber is destroyed.  The data structures
> should go away at that time too.

Thinking about it, rather than a global hash, using an instance variable
in thread objects might be the best choice, since you do actually want
to tie it to the lifetime of threads rather than particular fibers.

-mental

--
NMgXMnNEudCIuHdwFCK
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBHhZEESuZBmZzm14ERAqZIAKCjqesPh4JumVKvwNIS7P0iZTDRJgCgx2Oi
RfTUckNkFcMnIlut0J8tX10Gl
-----END PGP SIGNATURE-----

--
NMgXMnNEudCIuHdwFCK--