From 21a4337dc2f969dc3ec81e6ba3170119bcb67016 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 22 Jul 2014 16:39:01 +0000 Subject: Deferred erase now works on cache entries. You can erase a cache entry while it still has active references, and it will be safely cleaned up when the last reference is released. --- src/stable/file.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/stable/file.h') diff --git a/src/stable/file.h b/src/stable/file.h index ad60e80..e3497d3 100644 --- a/src/stable/file.h +++ b/src/stable/file.h @@ -15,6 +15,8 @@ #include "bu/string.h" #include "bu/exceptionbase.h" +struct stat; + namespace Bu { subExceptionDecl( FileException ); @@ -76,6 +78,8 @@ namespace Bu virtual size getBlockSize() const; virtual Bu::String getLocation() const; + void stat( struct ::stat *pStat ); + /** * Create a temp file and return its handle. The file is opened * Read/Write. -- cgit v1.2.3