Ignore:
Timestamp:
Jul 27, 2012, 9:07:54 PM (8 years ago)
Author:
sam
Message:

core: make the IO thread exit cleanly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ticker.cpp

    r1675 r1676  
    5656#endif
    5757        gametick.Push(0);
     58        disktick.Push(0);
    5859        delete gamethread;
    5960        delete diskthread;
     
    7677    static void *DiskThreadMain(void *p);
    7778    Thread *gamethread, *drawthread, *diskthread;
    78     Queue<int> gametick, drawtick;
     79    Queue<int> gametick, drawtick, disktick;
    7980
    8081    /* Shutdown management */
     
    316317{
    317318    /* FIXME: temporary hack to avoid crashes on the PS3 */
    318     Timer t;
    319     for (;;)
    320     {
    321         t.Get();
    322         t.Wait(0.01f);
    323     }
     319    data->disktick.Pop();
    324320
    325321    return NULL;
Note: See TracChangeset for help on using the changeset viewer.