GETFROMSTACK(ustack, void *, start, 0);
GETFROMSTACK(ustack, unsigned int, priority, 1);
GETFROMSTACK(ustack, void *, stack, 2);
GETFROMSTACK(ustack, unsigned int, stacksz, 3);
GETFROMSTACK(ustack, void *, arg, 4);
GETFROMSTACK(ustack, unsigned int *, id, 5);
Starts thread from entry point given by start
at priority defined by priority
. Thread stack is defined by stack
and stacksz
arguments. Executed thread id is returned in id
variable.
Terminates executing thread.
GETFROMSTACK(ustack, time_t, timeout, 0);
GETFROMSTACK(ustack, unsigned int, us, 0);
Suspends thread execution for number of microseconds defined by us
.
GETFROMSTACK(ustack, int, n, 0);
GETFROMSTACK(ustack, threadinfo_t *, info, 1);
Returns thread information info
for thread given by n
.
Returns identifier of calling thread.
GETFROMSTACK(ustack, int, priority, 0);