diff options
Diffstat (limited to 'CPP/7zip/Compress/BZip2/BZip2Encoder.h')
-rwxr-xr-x | CPP/7zip/Compress/BZip2/BZip2Encoder.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/CPP/7zip/Compress/BZip2/BZip2Encoder.h b/CPP/7zip/Compress/BZip2/BZip2Encoder.h index eff93bc7..02d4cde3 100755 --- a/CPP/7zip/Compress/BZip2/BZip2Encoder.h +++ b/CPP/7zip/Compress/BZip2/BZip2Encoder.h @@ -105,8 +105,6 @@ private: int m_BlockIndex; - void FinishStream(bool needLeave); - void WriteBits2(UInt32 value, UInt32 numBits); void WriteByte2(Byte b); void WriteBit2(bool v); @@ -130,12 +128,9 @@ public: UInt64 m_PackSize; Byte MtPad[1 << 8]; // It's pad for Multi-Threading. Must be >= Cache_Line_Size. - HRes Create() - { - RINOK(StreamWasFinishedEvent.Create()); - RINOK(WaitingWasStartedEvent.Create()); - return CanWriteEvent.Create(); - } + HRes Create(); + void FinishStream(bool needLeave); + DWORD ThreadFunc(); #endif CThreadInfo(): m_BlockSorterIndex(0), m_Block(0) {} @@ -144,7 +139,6 @@ public: void Free(); HRESULT EncodeBlock3(UInt32 blockSize); - DWORD ThreadFunc(); }; class CEncoder : @@ -230,7 +224,7 @@ public: #ifdef COMPRESS_BZIP2_MT MY_UNKNOWN_IMP2(ICompressSetCoderMt, ICompressSetCoderProperties) #else - MY_UNKNOWN_IMP1(ICompressGetInStreamProcessedSize) + MY_UNKNOWN_IMP1(ICompressSetCoderProperties) #endif HRESULT CodeReal(ISequentialInStream *inStream, |