pub fn thread_exec(ctx: Context<'_, '_, '_, '_, ThreadExec<'_>>) -> Result<()>
Executes the next instruction on thread.