• Home
  • Raw
  • Download

Lines Matching refs:threadID

82         bool find(SkThreadID threadID) const {  in find()
84 if (t == threadID) return true; in find()
90 bool tryAdd(SkThreadID threadID) { in tryAdd() argument
92 if (t == threadID) return false; in tryAdd()
94 fThreadIDs.append(1, &threadID); in tryAdd()
98 bool tryRemove(SkThreadID threadID) { in tryRemove() argument
100 if (fThreadIDs[i] == threadID) { in tryRemove()
130 SkThreadID threadID(SkGetThreadID()); in acquire() local
136 SkASSERTF(!fCurrentShared->find(threadID), in acquire()
137 "Thread %" PRIx64 " already has an shared lock\n", threadID); in acquire()
139 if (!fWaitingExclusive->tryAdd(threadID)) { in acquire()
140 SkDEBUGFAILF("Thread %" PRIx64 " already has an exclusive lock\n", threadID); in acquire()
159 SkThreadID threadID(SkGetThreadID()); in release() local
166 if (!fWaitingExclusive->tryRemove(threadID)) { in release()
167 SkDEBUGFAILF("Thread %" PRIx64 " did not have the lock held.\n", threadID); in release()
186 SkThreadID threadID(SkGetThreadID()); in assertHeld() local
189 SkASSERT(fWaitingExclusive->find(threadID)); in assertHeld()
193 SkThreadID threadID(SkGetThreadID()); in acquireShared() local
200 if (!fWaitingShared->tryAdd(threadID)) { in acquireShared()
201 SkDEBUGFAILF("Thread %" PRIx64 " was already waiting!\n", threadID); in acquireShared()
204 if (!fCurrentShared->tryAdd(threadID)) { in acquireShared()
205 SkDEBUGFAILF("Thread %" PRIx64 " already holds a shared lock!\n", threadID); in acquireShared()
220 SkThreadID threadID(SkGetThreadID()); in releaseShared() local
226 if (!fCurrentShared->tryRemove(threadID)) { in releaseShared()
227 SkDEBUGFAILF("Thread %" PRIx64 " does not hold a shared lock.\n", threadID); in releaseShared()
239 SkThreadID threadID(SkGetThreadID()); in assertHeldShared() local
241 SkASSERT(fCurrentShared->find(threadID)); in assertHeldShared()