Lines Matching refs:joined
316 STATIC INT32 ProcessByJoinState(_pthread_data *joined)
321 switch (joined->state) {
325 ret = OsTaskJoinPendUnsafe(joined->task);
332 joined->state = PTHREAD_STATE_ALRDY_JOIN;
341 /* None of these may be joined. */
350 PRINT_ERR("state: %u is not supported\n", (UINT32)joined->state);
361 _pthread_data *joined = NULL;
372 joined = pthread_get_data(thread);
373 if (joined == NULL) {
376 status = joined->state;
378 if (joined == self) {
382 err = ProcessByJoinState(joined);
388 * ready to be joined.
392 *retVal = joined->task->joinRetval;
396 joined->state = PTHREAD_STATE_EXITED;
402 joined->state = status;
414 * need to be joined and its resources will be freed when it exits.