diff options
Diffstat (limited to '7zip/Compress/LZ/MT/MT.cpp')
-rwxr-xr-x | 7zip/Compress/LZ/MT/MT.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/7zip/Compress/LZ/MT/MT.cpp b/7zip/Compress/LZ/MT/MT.cpp index a96e924f..b0ac456d 100755 --- a/7zip/Compress/LZ/MT/MT.cpp +++ b/7zip/Compress/LZ/MT/MT.cpp @@ -141,7 +141,7 @@ void CMatchFinderMT::GetNextBlock() m_MtWasStarted.Lock(); m_Result = S_OK; } - while (true) + for (;;) { UInt32 nextIndex = (m_BlockIndex == kNumMTBlocks - 1) ? 0 : m_BlockIndex + 1; m_CS[nextIndex].Enter(); @@ -206,7 +206,7 @@ STDMETHODIMP CMatchFinderMT::Skip(UInt32 num) return S_OK; } -STDMETHODIMP_(Int32) CMatchFinderMT::NeedChangeBufferPos(UInt32 numCheckBytes) +STDMETHODIMP_(Int32) CMatchFinderMT::NeedChangeBufferPos(UInt32 /* numCheckBytes */) { throw 1; } @@ -219,13 +219,13 @@ STDMETHODIMP_(void) CMatchFinderMT::ChangeBufferPos() DWORD CMatchFinderMT::ThreadFunc() { - while(true) + for (;;) { bool needStartEvent = true; m_MtCanStart.Lock(); HRESULT result = S_OK; UInt32 blockIndex = 0; - while (true) + for (;;) { m_CS[blockIndex].Enter(); if (needStartEvent) |