Home | History | Annotate | Download | only in pthread_join

Lines Matching refs:err

45 	int err;
47 err = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
48 if (err != 0) {
49 fprintf(stderr, "pthread_setcancelstate: %s", strerror(err));
53 err = pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL);
54 if (err != 0) {
55 fprintf(stderr, "pthread_setcanceltype: %s", strerror(err));
79 int err;
81 err = pthread_create(&new_th, NULL, a_thread_func, NULL);
82 if (err != 0) {
83 fprintf(stderr, "pthread_create: %s\n", strerror(err));
90 err = pthread_cancel(new_th);
91 if (err != 0) {
92 fprintf(stderr, "pthread_cancel: %s\n", strerror(err));
96 err = pthread_join(new_th, NULL);
97 if (err != 0) {
98 fprintf(stderr, "pthread_join: %s\n", strerror(err));