Lines Matching refs:detached
294 * If we are already detached, go to EXITED state, otherwise
413 * Set the detachstate of the thread to "detached". The thread then does not
421 _pthread_data *detached = NULL;
426 detached = pthread_get_data(thread);
427 if (detached == NULL) {
429 } else if (detached->state == PTHREAD_STATE_DETACHED) {
430 ret = EINVAL; /* Already detached! */
431 } else if (detached->state == PTHREAD_STATE_JOIN) {
432 detached->state = PTHREAD_STATE_EXITED;
435 /* Set state to detached and kick any joinees to make them return. */
437 if (!(detached->task->taskStatus & OS_TASK_STATUS_EXIT)) {
438 ret = OsTaskSetDetachUnsafe(detached->task);
442 detached->state = PTHREAD_STATE_DETACHED;
445 detached->state = PTHREAD_STATE_EXITED;