NAME
cthread_self, cthread_yield, cthread_perror - thread utility
routines
LIBRARY
C Threads Library (libcthreads.a)
SYNOPSIS
#include <cthread.h>
cthread_t cthread_self();
void cthread_yield();
void cthread_perror( char *str, RESULT error_code);
PARAMETERS
str specifies a string to be appended to the printed
error message.
error_code
specifies a cthreads return code to be printed textu-
ally to standard error.
DESCRIPTION
cthread_self() returns a cthread_t value identifying the
currently executing thread.
cthread_yield() causes the current thread to give up the
processor. The scheduler is invoked to determine the next
thread to run. This call is useful to prevent starvation
between threads on a single processor.
cthread_perror() prints a short error message on standard
error describing the error denoted by error_code. If str is
not a NULL pointer, the string it points to is printed
before the string describing the error code.
DIAGNOSTICS
None.
SEE ALSO
cthread_intro(3)
AUTHOR
Cthreads was written and maintained by many people.
This man page written by Greg Eisenhauer.