>   I am just curious to know, what does privatiseObject() function does.

A private object is an in-memory datum that has been discarded from the
global hash table but hasn't been freed yet.  It'll be freed as soon as
its refcount reaches 0.

Suppose we have an object o that we want to discard (either because it's
been superseded, or because we're running low on memory).  Doing free(o)
wouldn't be safe -- there could be other pointers to o.  So we remove it
from the global hash table and arrange to get it freed as soon as there
are no longer any pointers to it (its refcount reaches 0).  That's what
privatiseObject does.

> do we need two types of object, public and private. If a object is
> privitise, and I want to destroy the object, do I need to take care
> something special?

It will happen automatically as soon as it's safe to do so.

> If I want to disable the disk-caching feature in polipo, how can I do that?

Set diskCacheRoot to the empty string, or compile with -DNO_DISK_CACHE.

-- Juliusz

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
DESIGN Expert tips on starting your parallel project right.
http://goparallel.sourceforge.net
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to