aboutsummaryrefslogtreecommitdiff
path: root/src/stable/myriad.h
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2024-09-18 12:55:05 -0700
committerMike Buland <mike@xagasoft.com>2024-09-18 12:55:05 -0700
commitcad3e4d5d87dd713e27779d1f4a20821485b9de2 (patch)
treeb69dd37e3e4fa644a086f8697f4b42bc3ec3121b /src/stable/myriad.h
parentd1f985c8191326292dd2ae5a85a63993ad68ddd7 (diff)
downloadlibbu++-cad3e4d5d87dd713e27779d1f4a20821485b9de2.tar.gz
libbu++-cad3e4d5d87dd713e27779d1f4a20821485b9de2.tar.bz2
libbu++-cad3e4d5d87dd713e27779d1f4a20821485b9de2.tar.xz
libbu++-cad3e4d5d87dd713e27779d1f4a20821485b9de2.zip
Myriad headers are the right size now.
That was weird. It seems to be working now.
Diffstat (limited to 'src/stable/myriad.h')
-rw-r--r--src/stable/myriad.h13
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;