Add "lock" functionality to keep FileDatas in memory
authorOmari Stephens <xsdg@xsdg.org>
Mon, 12 Nov 2012 06:03:02 +0000 (06:03 +0000)
committerOmari Stephens <xsdg@xsdg.org>
Tue, 13 Nov 2012 08:24:44 +0000 (08:24 +0000)
commit710b009f5c61e7d1643a2a474e5020c760bf6462
tree76559ac1bb20ef633edf892904aa831a6a606688
parentcf90f247aceadb444297c3c66e2215e8c209ca69
Add "lock" functionality to keep FileDatas in memory

Adds two primitives to keep a FileData in memory even after its refcount
drops to zero.  Intended to be used in situations when an entire group of
FileDatas _should_ stay in memory as an optimization, even if the code
would continue to function properly even if the FileData were freed.
src/filedata.c
src/filedata.h
src/typedefs.h