200{
205
206
208
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" );
213 }
214
215
216
217
218 pthread_attr_init( &attr );
219#ifdef PTHREAD_CREATE_UNDETACHED
220 pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_UNDETACHED );
221#endif
222#ifdef PTHREAD_SCOPE_SYSTEM
223 retval = pthread_attr_setscope( &attr, PTHREAD_SCOPE_SYSTEM );
226#endif
227
228#ifdef PPC64
230 sigemptyset( &sigprof );
231 sigaddset( &sigprof, SIGPROF );
235#endif
236
240 test_fail( __FILE__, __LINE__,
"pthread_create",
rc );
241 }
242 pthread_attr_destroy( &attr );
243
244#ifdef PPC64
248#endif
249
251
253
254 return 0;
255
256}
void * thread_fn(void *dummy)
static void mainloop(int arg)
unsigned long int pthread_t
int sigprocmask(int __how, const sigset_t *__restrict __set, sigset_t *__restrict __oset) __attribute__((__nothrow__
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)
void PAPI_NORETURN test_skip(const char *file, int line, const char *call, int retval)