if (ret_value==0) {
// set the default values
- // detachstate = detached thread (no join operation allowed)
- CHK(pthread_attr_setdetachstate(attr,PTHREAD_CREATE_DETACHED));
// inheritsched = explicit, so that we can explicitly set the attributes
CHK(pthread_attr_setinheritsched(attr,PTHREAD_EXPLICIT_SCHED));