systhread_start
The
systhread_start
a stack of a specified number of bytes, and calls a specified function with a
specified argument.
Syntax
SYS_THREAD systhread_start(int prio, int stksz,
void (*fn)(void *), void *arg);
Returns
A new
pointer if the call succeeded or the constant
SYS_THREAD
if the call did not succeed.
Parameters
is the priority of the thread. Priorities are system-dependent.
int prio
is the stack size in bytes. If
int stksz
size.
void (*fn)(void *)
is the argument for the
void *arg
See also
systhread_current, systhread_getdata, systhread_newkey,
systhread_setdata, systhread_sleep, systhread_timerset
systhread_timerset
The
systhread_timerset
a thread system.
Because most systems don't allow the timer interval to be changed, this should be
considered a suggestion, rather than a command.
Syntax
void systhread_timerset(int usec);
Returns
void
Parameters
is the time, in microseconds
int usec
function creates a thread with the given priority, allocates
stksz
is the function to call.
function.
fn
function starts or resets the interrupt timer interval for
NSAPI Functions (in Alphabetical Order)
SYS_THREAD_ERROR
is zero, the function allocates a default
Chapter 5
NSAPI Function Reference
193