02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C<br />

<strong>Tornado</strong> Tools Reference<br />

period( )<br />

NAME<br />

period() – spawn a task to call a function periodically<br />

C<br />

SYNOPSIS<br />

DESCRIPTION<br />

RETURNS<br />

SEE ALSO<br />

int period<br />

(<br />

int secs, /* period in seconds */<br />

FUNCPTR func, /* function to call repeatedly */<br />

int arg1, /* first of eight args to pass to func */<br />

int arg2,<br />

int arg3,<br />

int arg4,<br />

int arg5,<br />

int arg6,<br />

int arg7,<br />

int arg8<br />

)<br />

This command spawns a task that repeatedly calls a specified target-resident function,<br />

with up to eight of its arguments, delaying the specified number of seconds between calls.<br />

NOTE: The task is spawned using the sp( ) command. See the description of sp( ) for<br />

details about priority, options, stack size, and task ID.<br />

A task ID, or ERROR if the task cannot be spawned.<br />

windsh, sp(), <strong>Tornado</strong> User’s Guide: Shell<br />

printErrno( )<br />

NAME<br />

printErrno() – print the definition of a specified error status value<br />

SYNOPSIS<br />

DESCRIPTION<br />

void printErrno<br />

(<br />

int errNo /* status code whose name is to be printed */<br />

)<br />

This command displays the error-status string, corresponding to a specified error-status<br />

value. It is only useful if the error-status symbol table has been built and included in the<br />

system. An errNo equal to zero will display the error number set by the last function called<br />

from WindSh.<br />

405

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!