210 printf(
"%s: Using %d threads\n\n", argv[0],
NUM_THREADS );
211 printf(
"Does non-threaded multiplexing work " 212 "with extraneous threads present?\n" );
218 pthread_attr_init( &attr );
219 #ifdef PTHREAD_CREATE_UNDETACHED 220 pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_UNDETACHED );
222 #ifdef PTHREAD_SCOPE_SYSTEM 223 retval = pthread_attr_setscope( &attr, PTHREAD_SCOPE_SYSTEM );
230 sigemptyset( &sigprof );
231 sigaddset( &sigprof, SIGPROF );
240 test_fail( __FILE__, __LINE__,
"pthread_create",
rc );
242 pthread_attr_destroy( &attr );
void test_pass(const char *filename)
unsigned long int pthread_t
void test_skip(const char *file, int line, const char *call, int retval)
void * thread_fn(void *dummy)
int sigprocmask(int __how, const sigset_t *__restrict __set, sigset_t *__restrict __oset) __attribute__((__nothrow__
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
static void mainloop(int arg)