iterator using ucontext/setcontext