aboutsummaryrefslogtreecommitdiff
path: root/src/stable/file.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2014-07-22 16:39:01 +0000
committerMike Buland <eichlan@xagasoft.com>2014-07-22 16:39:01 +0000
commit21a4337dc2f969dc3ec81e6ba3170119bcb67016 (patch)
treeaf8077ea0e89ec29b499e46583f3de35d1b3103c /src/stable/file.h
parent6482ec1f7550f0fca153bd8f556327902c7afec8 (diff)
downloadlibbu++-21a4337dc2f969dc3ec81e6ba3170119bcb67016.tar.gz
libbu++-21a4337dc2f969dc3ec81e6ba3170119bcb67016.tar.bz2
libbu++-21a4337dc2f969dc3ec81e6ba3170119bcb67016.tar.xz
libbu++-21a4337dc2f969dc3ec81e6ba3170119bcb67016.zip
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.
Diffstat (limited to 'src/stable/file.h')
-rw-r--r--src/stable/file.h4
1 files changed, 4 insertions, 0 deletions
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 @@
15#include "bu/string.h" 15#include "bu/string.h"
16#include "bu/exceptionbase.h" 16#include "bu/exceptionbase.h"
17 17
18struct stat;
19
18namespace Bu 20namespace Bu
19{ 21{
20 subExceptionDecl( FileException ); 22 subExceptionDecl( FileException );
@@ -76,6 +78,8 @@ namespace Bu
76 virtual size getBlockSize() const; 78 virtual size getBlockSize() const;
77 virtual Bu::String getLocation() const; 79 virtual Bu::String getLocation() const;
78 80
81 void stat( struct ::stat *pStat );
82
79 /** 83 /**
80 * Create a temp file and return its handle. The file is opened 84 * Create a temp file and return its handle. The file is opened
81 * Read/Write. 85 * Read/Write.