Lines Matching refs:GuardedSize

157 class GuardedSize : tbb::detail::no_copy {  class
208 GuardedSize myL, // lock for me
237 size_t trySetMeUsed(GuardedSize::State s) { return myL.tryLock(s); } in trySetMeUsed()
241 size_t trySetLeftUsed(GuardedSize::State s) { return leftL.tryLock(s); } in trySetLeftUsed()
244 size_t rSz, sz = trySetMeUsed(GuardedSize::LOCKED); in tryLockBlock()
246 if (sz <= GuardedSize::MAX_LOCKED_VAL) in tryLockBlock()
248 rSz = rightNeig(sz)->trySetLeftUsed(GuardedSize::LOCKED); in tryLockBlock()
249 if (rSz <= GuardedSize::MAX_LOCKED_VAL) { in tryLockBlock()
1052 size_t leftSz = fBlock->trySetLeftUsed(GuardedSize::COAL_BLOCK); in doCoalesc()
1053 if (leftSz != GuardedSize::LOCKED) { in doCoalesc()
1054 if (leftSz == GuardedSize::COAL_BLOCK) { in doCoalesc()
1059 size_t lSz = left->trySetMeUsed(GuardedSize::COAL_BLOCK); in doCoalesc()
1060 if (lSz <= GuardedSize::MAX_LOCKED_VAL) { in doCoalesc()
1075 size_t rightSz = right->trySetMeUsed(GuardedSize::COAL_BLOCK); in doCoalesc()
1076 if (rightSz != GuardedSize::LOCKED) { in doCoalesc()
1078 if (GuardedSize::LAST_REGION_BLOCK == rightSz) { in doCoalesc()
1079 right->setMeFree(GuardedSize::LAST_REGION_BLOCK); in doCoalesc()
1081 } else if (GuardedSize::COAL_BLOCK == rightSz) { in doCoalesc()
1090 trySetLeftUsed(GuardedSize::COAL_BLOCK); in doCoalesc()
1091 if (rSz <= GuardedSize::MAX_LOCKED_VAL) { in doCoalesc()
1107 trySetMeUsed(GuardedSize::COAL_BLOCK); in doCoalesc()
1108 if (nextRightSz > GuardedSize::MAX_LOCKED_VAL) { in doCoalesc()
1109 if (nextRightSz == GuardedSize::LAST_REGION_BLOCK) in doCoalesc()
1271 lastBl->setMeFree(GuardedSize::LAST_REGION_BLOCK); in startUseBlock()
1334 MALLOC_ASSERT(FreeBlock::minBlockSize > GuardedSize::MAX_SPEC_VAL, in addNewRegion()
1437 MALLOC_ASSERT(mySz>GuardedSize::MAX_SPEC_VAL, ASSERT_TEXT); in verify()
1440 MALLOC_ASSERT(right->myL.value<=GuardedSize::MAX_SPEC_VAL, ASSERT_TEXT); in verify()
1442 MALLOC_ASSERT(fb->leftL.value<=GuardedSize::MAX_SPEC_VAL, ASSERT_TEXT); in verify()