Skip to main content

Name

scpt_execute_or_resume — Execute or resume execution of a thread

Synopsis

#include "modules/scriptlets/ec_scriptlet.h"

| int **scpt_execute_or_resume** ( | thr, |   | |   | nargs); |   |

scpt_thread * <var class="pdparam">thr</var>; int <var class="pdparam">nargs</var>;

Description

Execute or resume execution of a thread. You are expected to have prepared the parameters appropriately.

Parameters

thr

The script thread. For a description of this data type see “scpt_thread”.

nargs

The number of arguments.

Return Value

Returns SCPT_YIELD, SCPT_ERR or the number of return values, which may be zero.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?