[PATCH] fileread for the std VMOD

Sanjoy Das sanjoy at playingwithpointers.com
Tue Nov 30 07:23:38 CET 2010


Hi!

Attached patches make fileread's loaded-file cache a global list. I'm currently working on implementing (preferably lockless) reference counting (and then I'll have the call-private pointer point to a node in the global list; with proper cleanup).

What do I use for a CAS? I've been using __sync_val_compare_and_swap; but that's GCC specific.
-- 
Regards,

Sanjoy Das
http://playingwithpointers.com
http://playingwithpointers.com/custom/public_key.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: global-lists.patch
Type: text/x-patch
Size: 5358 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20101130/51eedcb2/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: structuring.patch
Type: text/x-patch
Size: 4892 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20101130/51eedcb2/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20101130/51eedcb2/attachment-0003.pgp>


More information about the varnish-dev mailing list