Lines Matching refs:ts
434 auto& ts = mThreadState; in destroy() local
435 if (!find_arena(rnd.get() % maxArenas, [&ts](ArenaPtrRWMutex& arena, std::size_t idx) { in destroy()
436 if (!ts.lockedArenas[idx]) { in destroy()
475 auto& ts = mThreadState; in acquire() local
477 [&ts, &lock, &resIdx](ArenaPtrRWMutex& arena, std::size_t idx) -> tbb::task_arena* { in acquire()
478 if (!ts.lockedArenas[idx]) { in acquire()
480 ts.lockedArenas[idx] = true; in acquire()
481 ts.arenaIdxStack[ts.level++] = int(idx); in acquire()
496 auto& ts = mThreadState; in release() local
497 CHECK_FAST(ts.level > 0); in release()
498 auto idx = ts.arenaIdxStack[--ts.level]; in release()
499 CHECK_FAST(ts.lockedArenas[idx]); in release()
500 ts.lockedArenas[idx] = false; in release()