diff options
Diffstat (limited to 'src/stable/myriad.h')
-rw-r--r-- | src/stable/myriad.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/stable/myriad.h b/src/stable/myriad.h index 7cf6041..58f700a 100644 --- a/src/stable/myriad.h +++ b/src/stable/myriad.h | |||
@@ -73,9 +73,16 @@ namespace Bu | |||
73 | 73 | ||
74 | MyriadStream create( Mode eMode, int32_t iPreallocateBytes=-1 ); | 74 | MyriadStream create( Mode eMode, int32_t iPreallocateBytes=-1 ); |
75 | MyriadStream open( StreamId iStream, Mode eMode ); | 75 | MyriadStream open( StreamId iStream, Mode eMode ); |
76 | bool erase( StreamId iStream ); | 76 | void erase( StreamId iStream ); |
77 | bool setSize( StreamId iStream, int32_t iNewSize ); | 77 | void setSize( StreamId iStream, int32_t iNewSize ); |
78 | Bu::String getLocation() const; | 78 | Bu::String getLocation() const; |
79 | int32_t getBlockSize() const; | ||
80 | int32_t getTotalBlocks() const; | ||
81 | int32_t getUsedBlocks() const; | ||
82 | int32_t getFreeBlocks() const; | ||
83 | int32_t getTotalStreams() const; | ||
84 | int32_t getTotalUsedBytes() const; | ||
85 | int32_t getTotalUnusedBytes( int32_t iAssumeBlockSize=-1 ) const; | ||
79 | 86 | ||
80 | private: | 87 | private: |
81 | bool loadMyriad(); | 88 | bool loadMyriad(); |
@@ -151,7 +158,6 @@ namespace Bu | |||
151 | int32_t iSize; | 158 | int32_t iSize; |
152 | Bu::Array<int32_t> aBlocks; | 159 | Bu::Array<int32_t> aBlocks; |
153 | int32_t iOpenCount; | 160 | int32_t iOpenCount; |
154 | bool bStructureChanged; | ||
155 | }; | 161 | }; |
156 | 162 | ||
157 | private: | 163 | private: |
@@ -164,6 +170,7 @@ namespace Bu | |||
164 | int32_t iBlockCount; | 170 | int32_t iBlockCount; |
165 | bool bIsNewStream; | 171 | bool bIsNewStream; |
166 | bool bStructureChanged; | 172 | bool bStructureChanged; |
173 | mutable Bu::Mutex mhStream; | ||
167 | StreamHash hStream; | 174 | StreamHash hStream; |
168 | IndexList lFreeBlocks; | 175 | IndexList lFreeBlocks; |
169 | StreamId iLastUsedIndex; | 176 | StreamId iLastUsedIndex; |