scpt_execute_or_resume

March 26, 2020 Contributors

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

Chapter 42, Scriptlet (and Alerting) Functions