Lines Matching refs:retcode
37 int retcode;
41 retcode = pthread_create (&th_a, NULL, process, (void *) "a");
42 if (retcode != 0)
43 fprintf (stderr, "create a failed %d\n", retcode);
44 retcode = pthread_create (&th_b, NULL, process, (void *) "b");
45 if (retcode != 0)
46 fprintf (stderr, "create b failed %d\n", retcode);
47 retcode = pthread_join (th_a, &retval);
48 if (retcode != 0)
49 fprintf (stderr, "join a failed %d\n", retcode);
50 retcode = pthread_join (th_b, &retval);
51 if (retcode != 0)
52 fprintf (stderr, "join b failed %d\n", retcode);