Lines Matching refs:attr
48 pthread_attr_t attr;
55 pthread_attr_init(&attr);
56 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
57 assert(pthread_attr_getdetachstate(&attr, &detachstate) == 0);
59 pthread_attr_setstacksize(&attr, 16384);
65 pthread_create(&thread, &attr, thread_func1, &thread_arg[i]);
68 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
69 assert(pthread_attr_getdetachstate(&attr, &detachstate) == 0);
74 pthread_create(&thread, &attr, thread_func2, &thread_arg[i]);
76 pthread_attr_destroy(&attr);