diff options
Diffstat (limited to 'src/3rdparty/squirrel/samples/tailstate.nut')
-rw-r--r-- | src/3rdparty/squirrel/samples/tailstate.nut | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/3rdparty/squirrel/samples/tailstate.nut b/src/3rdparty/squirrel/samples/tailstate.nut deleted file mode 100644 index 59fb962ef..000000000 --- a/src/3rdparty/squirrel/samples/tailstate.nut +++ /dev/null @@ -1,24 +0,0 @@ -function state1() -{ - ::suspend("state1"); - return state2(); -} - -function state2() -{ - ::suspend("state2"); - return state3(); -} - -function state3() -{ - ::suspend("state3"); - return state1(); -} - -local statethread = ::newthread(state1) - -::print(statethread.call()+"\n"); - -for(local i = 0; i < 10000; i++) - ::print(statethread.wakeup()+"\n"); |