Ignore:
Timestamp:
Jan 15, 2013, 11:41:52 PM (8 years ago)
Author:
sam
Message:

core: you can now while(app.MustTick()) { Tick(); } instead of app.Run().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/nacl/nacl-app.cpp

    r2183 r2222  
    5151}
    5252
    53 void NaClApp::Run()
     53void NaClApp::Tick()
    5454{
     55    /* The caller should run forever */
    5556#if defined __native_client__
    56     NaClInstance::MainSignal();
     57    static int init = 0;
     58    if (!init)
     59    {
     60        NaClInstance::MainSignal();
     61        init = 1;
     62    }
    5763#endif
    58 
    59     /* Wait forever */
    60     Queue<int, 1> q;
    61     q.Pop();
    6264}
    6365
Note: See TracChangeset for help on using the changeset viewer.