diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2021-11-29 06:03:01 +0300 |
---|---|---|
committer | fn ⌃ ⌥ <70830482+FnControlOption@users.noreply.github.com> | 2021-11-29 06:03:01 +0300 |
commit | 1194dc935382931bbfdd4e49004bd755e6165df1 (patch) | |
tree | 60354d8832278528f74c48ca3b5e446175747409 /CPP/7zip/Archive/7z/7zCompressionMode.h | |
parent | d789d4137d8a7c16696c5bc1b13f24bb887eb7ea (diff) |
21.0421.04
Diffstat (limited to 'CPP/7zip/Archive/7z/7zCompressionMode.h')
-rw-r--r-- | CPP/7zip/Archive/7z/7zCompressionMode.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/CPP/7zip/Archive/7z/7zCompressionMode.h b/CPP/7zip/Archive/7z/7zCompressionMode.h index 44c90226..9e846345 100644 --- a/CPP/7zip/Archive/7z/7zCompressionMode.h +++ b/CPP/7zip/Archive/7z/7zCompressionMode.h @@ -14,8 +14,10 @@ struct CMethodFull: public CMethodProps CMethodId Id; UInt32 NumStreams; int CodecIndex; + UInt32 NumThreads; + bool Set_NumThreads; - CMethodFull(): CodecIndex(-1) {} + CMethodFull(): CodecIndex(-1), NumThreads(1), Set_NumThreads(false) {} bool IsSimpleCoder() const { return NumStreams == 1; } }; @@ -53,8 +55,12 @@ struct CCompressionMethodMode #ifndef _7ZIP_ST UInt32 NumThreads; + bool NumThreads_WasForced; bool MultiThreadMixer; #endif + + UInt64 MemoryUsageLimit; + bool MemoryUsageLimit_WasSet; bool PasswordIsDefined; UString Password; // _Wipe @@ -65,8 +71,11 @@ struct CCompressionMethodMode , Filter_was_Inserted(false) #ifndef _7ZIP_ST , NumThreads(1) + , NumThreads_WasForced(false) , MultiThreadMixer(true) #endif + , MemoryUsageLimit((UInt64)1 << 30) + , MemoryUsageLimit_WasSet(false) , PasswordIsDefined(false) {} |