I'm curious how multiple FF processes all access the same (disk) cache.
>From looking at the code in netwerk/cache/src, specifically
nsCacheService, a static instance of the cache is created using a
factory method (nsCacheService::Create). Also, all of the public
functions in this class are protected with a mutex to ensure
synchronized access. This would synchronize across threads of the same
process, but how is access synchronized across multiple processes? Does
it simply rely on the OS'es ability to synchronize access to the actual
cache files (ie. _CACHE_MAP_, _CACHE_00X, etc.) or does it employ some
kind process level shared lock, or otherwise?

If someone can point me in the right direction, any help would be much
appreciated. Thanks in advance.

-Andrew

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to