2 * Test for pthread_equal.
4 * Depends on functions: pthread_create().
9 void * func(void * arg)
20 assert(pthread_create(&t1, NULL, func, (void *) 1) == 0);
22 assert(pthread_create(&t2, NULL, func, (void *) 2) == 0);
24 assert(pthread_equal(t1, t2) == 0);
26 assert(pthread_equal(t1,t1) != 0);
28 /* This is a hack. We don't want to rely on pthread_join
29 yet if we can help it. */