Fix bug where we didn't initialize a variable properly, which led to a crash

This commit is contained in:
Pavel Krajcevski 2012-09-26 13:31:39 -04:00
parent 01c01b96cd
commit 6b4adcc95b

View File

@ -99,6 +99,7 @@ WorkerQueue::WorkerQueue(
, m_InBufSz(inBufSz) , m_InBufSz(inBufSz)
, m_InBuf(inBuf) , m_InBuf(inBuf)
, m_OutBuf(outBuf) , m_OutBuf(outBuf)
, m_NextBlock(0)
, m_CompressionFunc(func) , m_CompressionFunc(func)
{ {
clamp(m_NumThreads, uint32(1), uint32(kMaxNumWorkerThreads)); clamp(m_NumThreads, uint32(1), uint32(kMaxNumWorkerThreads));
@ -123,6 +124,7 @@ void WorkerQueue::Run() {
m_StopWatch.Reset(); m_StopWatch.Reset();
m_StopWatch.Start(); m_StopWatch.Start();
m_NextBlock = 0;
m_WaitingThreads = 0; m_WaitingThreads = 0;
// Wait for them to finish... // Wait for them to finish...