Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

can add a sq_resetvm api?

Last post 01-27-2010, 7:01 AM by hdh. 0 replies.
Sort Posts: Previous Next
  •  01-27-2010, 7:01 AM 3623

    can add a sq_resetvm api?

    I'm implementing a state machine use coroutine(thread), when in one state(may be a infinite loop), then want switch to another state, I want reset current thread to init(clear stack, callinfo etc.), then I can call another state's loop on this thread, but I can't found a way to reset a thread.

    I think this is useful, can add an api call like sq_resetvm?
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems