Lines Matching defs:self
142 // prctl(PR_SET_NAME) only works for self; prctl(PR_SET_THREAD_NAME) was
720 Thread* const self = static_cast<Thread*>(user);
722 sp<Thread> strong(self->mHoldSelf);
724 self->mHoldSelf.clear();
728 self->mTid = gettid();
737 self->mStatus = self->readyToRun();
738 result = (self->mStatus == NO_ERROR);
740 if (result && !self->exitPending()) {
751 result = self->threadLoop();
754 result = self->threadLoop();
759 Mutex::Autolock _l(self->mLock);
760 if (result == false || self->mExitPending) {
761 self->mExitPending = true;
762 self->mRunning = false;
765 self->mThread = thread_id_t(-1);
768 self->mThreadExitedCondition.broadcast();