Ignore:
Timestamp:
Mar 26, 2012, 8:18:33 PM (9 years ago)
Author:
sam
Message:

test: fix logic bugs in two tutorials.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tutorial/tut03.cpp

    r1162 r1172  
    160160    ~Fractal()
    161161    {
    162         /* Signal worker threads for completion. */
     162        /* Signal worker threads for completion and wait for
     163         * them to quit. */
    163164        for (int i = 0; i < MAX_THREADS; i++)
    164165            m_jobqueue.Push(-1);
     166        for (int i = 0; i < MAX_THREADS; i++)
     167            m_donequeue.Pop();
    165168
    166169        Input::UntrackMouse(this);
     
    338341            that->m_donequeue.Push(0);
    339342        }
     343        that->m_donequeue.Push(0);
    340344        return NULL;
    341345    };
Note: See TracChangeset for help on using the changeset viewer.