Re: block_cache

"Salvatore Benedetto" <[email protected]> Wed, 20 Aug 2008 11:07:51 +0000
Newsgroups gmane.os.openbeos.kernel.devel
Message-ID <[email protected]>
2008/8/20 Salvatore Benedetto <[email protected]>:
> Forgot to add a patch.
>

Please ignore the previous patch. Remove does not work as
I expected, which makes me wonder how does it behave when
called with an invalid object like in the scenario I mentioned in my
previous email.

Perhaps a deleting flag afterall is needed, or another mechanism in
order to find out whether the object cache is in the process of being
deleted or not. To make a comparison, in the xsi semaphore implementation,
I use an hash table, which makes thing a bit easier, as a Lookup() tells
you whether or not the object is still around.

As for now I can't think of any clean solution for this scenario.

Regards,
-- 
Salvatore Benedetto (a.k.a. emitrax)
Student of Computer Engineer
University of Pisa
www.haiku-os.it

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/