-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jesus Cea wrote: > * When referencing objects from the cache, keep an strong reference > around. We can keep those references until a commit/abort for that > thread comes. Then we delete them. Since the commit/abort is sure to be > called with a lock adquired, we can be sure that the collection will be > done with a lock. The code seems fairly trivial (the "recent_objects" > could be used for this. I don't understand the logic of > "recent_objects"). Beware, this code is not optimized for speed: This code doesn't work if a thread does several commits/aborts without touching persistent objects again :-/. - -- Jesus Cea Avion _/_/ _/_/_/ _/_/_/ jcea@argo.es http://www.argo.es/~jcea/ _/_/ _/_/ _/_/ _/_/ _/_/ jabber / xmpp:jcea@jabber.org _/_/ _/_/ _/_/_/_/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQCVAwUBRRMiMplgi5GaxT1NAQKmtgP+Ntw7QEHmdIMRc6+LC2wQezcNOr0cVHS8 fXjtwCvfB2wkkYIjm8aJzyB34vY/TDqJCJ159vbk0yAXG4NgxawJUOQ1XPDnpG85 +rz99bLGxoihHjbb4ZhzKCJu1vEq7hcxyorZzqWV1FlPmfgE4ifR6T62m1DwlWGb gO1vGV417iE= =XNxE -----END PGP SIGNATURE-----