Lines Matching defs:self
135 // prctl(PR_SET_NAME) only works for self; prctl(PR_SET_THREAD_NAME) was
713 Thread* const self = static_cast<Thread*>(user);
715 sp<Thread> strong(self->mHoldSelf);
717 self->mHoldSelf.clear();
721 self->mTid = gettid();
730 self->mStatus = self->readyToRun();
731 result = (self->mStatus == NO_ERROR);
733 if (result && !self->exitPending()) {
744 result = self->threadLoop();
747 result = self->threadLoop();
752 Mutex::Autolock _l(self->mLock);
753 if (result == false || self->mExitPending) {
754 self->mExitPending = true;
755 self->mRunning = false;
758 self->mThread = thread_id_t(-1);
761 self->mThreadExitedCondition.broadcast();