diff options
Diffstat (limited to '7zip/Archive/BZip2/BZip2Handler.h')
-rwxr-xr-x | 7zip/Archive/BZip2/BZip2Handler.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/7zip/Archive/BZip2/BZip2Handler.h b/7zip/Archive/BZip2/BZip2Handler.h index 8577d039..7977334e 100755 --- a/7zip/Archive/BZip2/BZip2Handler.h +++ b/7zip/Archive/BZip2/BZip2Handler.h @@ -7,6 +7,10 @@ #include "../IArchive.h" #include "BZip2Item.h" +#ifdef COMPRESS_MT +#include "../../../Windows/System.h" +#endif + namespace NArchive { namespace NBZip2 { @@ -20,8 +24,21 @@ class CHandler: NArchive::NBZip2::CItem _item; UInt64 _streamStartPosition; + UInt32 _level; + UInt32 _dicSize; UInt32 _numPasses; - void InitMethodProperties() { _numPasses = 1; } + #ifdef COMPRESS_MT + UInt32 _numThreads; + #endif + void InitMethodProperties() + { + _level = 5; + _dicSize = + _numPasses = 0xFFFFFFFF; + #ifdef COMPRESS_MT + _numThreads = NWindows::NSystem::GetNumberOfProcessors();; + #endif + } public: MY_UNKNOWN_IMP3( |