33{
37
38
40
43 }
44
49 }
50 else {
52 }
53 }
54
56 printf( "Test case: Clock latency and resolution.\n" );
57 printf( "Note: Virtual timers are proportional to # CPUs.\n" );
58 printf( "------------------------------------------------\n" );
59 }
60
61 pthread_attr_init( &attr );
62
63#ifdef PTHREAD_CREATE_UNDETACHED
64 pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_UNDETACHED );
65#endif
66
67#ifdef PTHREAD_SCOPE_SYSTEM
68 retval = pthread_attr_setscope( &attr, PTHREAD_SCOPE_SYSTEM );
71 }
72#endif
73
76 }
77
80 }
81
84 }
85
88 }
89
91
92 pthread_join(
t1, NULL );
93 pthread_join(
t2, NULL );
94 pthread_join( t3, NULL );
95 pthread_join( t4, NULL );
96
98
99 return 0;
100}
static struct timeval t1 t2
initialize the PAPI library.
Initialize thread support in the PAPI library.
void * pthread_main(void *arg)
unsigned long int pthread_t
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)