• Home
  • Raw
  • Download

Lines Matching refs:threadID

81         bool find(SkThreadID threadID) const {  in find()
83 if (t == threadID) return true; in find()
89 bool tryAdd(SkThreadID threadID) { in tryAdd() argument
91 if (t == threadID) return false; in tryAdd()
93 fThreadIDs.append(1, &threadID); in tryAdd()
97 bool tryRemove(SkThreadID threadID) { in tryRemove() argument
99 if (fThreadIDs[i] == threadID) { in tryRemove()
129 SkThreadID threadID(SkGetThreadID()); in acquire() local
135 if (!fWaitingExclusive->tryAdd(threadID)) { in acquire()
136 SkDEBUGFAILF("Thread %lx already has an exclusive lock\n", threadID); in acquire()
155 SkThreadID threadID(SkGetThreadID()); in release() local
162 if (!fWaitingExclusive->tryRemove(threadID)) { in release()
163 SkDEBUGFAILF("Thread %lx did not have the lock held.\n", threadID); in release()
182 SkThreadID threadID(SkGetThreadID()); in assertHeld() local
185 SkASSERT(fWaitingExclusive->find(threadID)); in assertHeld()
189 SkThreadID threadID(SkGetThreadID()); in acquireShared() local
196 if (!fWaitingShared->tryAdd(threadID)) { in acquireShared()
197 SkDEBUGFAILF("Thread %lx was already waiting!\n", threadID); in acquireShared()
200 if (!fCurrentShared->tryAdd(threadID)) { in acquireShared()
201 SkDEBUGFAILF("Thread %lx already holds a shared lock!\n", threadID); in acquireShared()
216 SkThreadID threadID(SkGetThreadID()); in releaseShared() local
222 if (!fCurrentShared->tryRemove(threadID)) { in releaseShared()
223 SkDEBUGFAILF("Thread %lx does not hold a shared lock.\n", threadID); in releaseShared()
235 SkThreadID threadID(SkGetThreadID()); in assertHeldShared() local
237 SkASSERT(fCurrentShared->find(threadID)); in assertHeldShared()