Lines Matching refs:auth
136 AuthorizationToken *auth = *it;
137 while (++it != mAuthorizations.end() && *it == auth) ; // Skip duplicates
138 if (auth->endProcess(*this))
139 delete auth;
203 void Process::addAuthorization(AuthorizationToken *auth)
205 assert(auth);
207 mAuthorizations.insert(auth);
208 auth->addProcess(*this);
211 void Process::checkAuthorization(AuthorizationToken *auth)
213 assert(auth);
215 if (mAuthorizations.find(auth) == mAuthorizations.end())
219 bool Process::removeAuthorization(AuthorizationToken *auth)
221 assert(auth);
225 Iter it = mAuthorizations.lower_bound(auth);
227 if (it == mAuthorizations.end() || auth != *it) {
231 isLast = (next == mAuthorizations.end()) || auth != *next;
235 if (auth->endProcess(*this)) // ... tell it to remove us,
238 return false; // keep the auth; it's still in use