pthread
typedef struct pthread *pthread_t;
int pthread_getschedparam(pthread_t pthread, int *,
struct pthread;
void (*tc_thread_release)(struct pthread *);
TAILQ_HEAD(pthread_queue, pthread);
LIST_ENTRY(pthread) threads;
TAILQ_ENTRY(pthread) waiting;
struct pthread;
struct pthread _initial_thread = {
extern struct pthread _initial_thread;
static struct pthread _initial_thread;
extern LIST_HEAD(listhead, pthread) _thread_list;
pthread_t self, pthread[THREAD_COUNT];
if ((r = pthread_create(&pthread[i], NULL, thread, arg))) {
pthread[i] = self;
if (! pthread_equal(pthread[i], self) &&
(r = pthread_join(pthread[i], NULL)))
pthread_t pthread;
CHECKr(pthread_create(&pthread, NULL, do_nothing, NULL));
CHECKr(pthread_kill(pthread, SIGUSR1));
CHECKr(pthread_join(pthread, NULL));
pthread_t self, pthread[THREAD_COUNT];
if ((r = pthread_create(&pthread[i], NULL, thread, NULL))) {
pthread[i] = self;
if (!pthread_equal(pthread[i], self) &&
(r = pthread_join(pthread[i], NULL)))
pthread_t self, pthread[THREAD_COUNT];
if ((r = pthread_create(&pthread[i], NULL, thread, NULL))) {
pthread[i] = self;