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?