Lines Matching refs:parent

89 	deMemPool*		parent;				/*!< Pointer to parent (null for root pools).		*/  member
169 static deMemPool* createPoolInternal (deMemPool* parent) in createPoolInternal() argument
175 if (parent && parent->allowFailing) in createPoolInternal()
177 if ((deRandom_getUint32(&parent->failRandom) & 16383) <= 15) in createPoolInternal()
196 pool->parent = parent; in createPoolInternal()
197 if (parent) in createPoolInternal()
199 parent->numChildren++; in createPoolInternal()
200 if (parent->firstChild) parent->firstChild->prevPool = pool; in createPoolInternal()
201 pool->nextPool = parent->firstChild; in createPoolInternal()
202 parent->firstChild = pool; in createPoolInternal()
206 pool->util = parent ? parent->util : DE_NULL; in createPoolInternal()
209 pool->allowFailing = parent ? parent->allowFailing : DE_FALSE; in createPoolInternal()
210 deRandom_init(&pool->failRandom, parent ? deRandom_getUint32(&parent->failRandom) : 0x1234abcd); in createPoolInternal()
214 pool->enableDebugAllocs = parent ? parent->enableDebugAllocs : DE_FALSE; in createPoolInternal()
220 while (root->parent) in createPoolInternal()
221 root = root->parent; in createPoolInternal()
281 deMemPool* deMemPool_create (deMemPool* parent) in deMemPool_create() argument
284 DE_ASSERT(parent); in deMemPool_create()
285 pool = createPoolInternal(parent); in deMemPool_create()
286 if (!pool && parent->util) in deMemPool_create()
287 parent->util->allocFailCallback(parent->util->userPointer); in deMemPool_create()
305 if (pool->parent) in deMemPool_destroy()
307 deMemPool* root = pool->parent; in deMemPool_destroy()
308 while (root->parent) in deMemPool_destroy()
309 root = root->parent; in deMemPool_destroy()
330 if (pool->parent) in deMemPool_destroy()
332 deMemPool* parent = pool->parent; in deMemPool_destroy() local
333 if (parent->firstChild == pool) in deMemPool_destroy()
334 parent->firstChild = pool->nextPool; in deMemPool_destroy()
336 parent->numChildren--; in deMemPool_destroy()
337 DE_ASSERT(parent->numChildren >= 0); in deMemPool_destroy()
585 DE_ASSERT(pool && !pool->parent); /* must be root */ in deMemPool_getMaxNumAllocatedBytes()
591 DE_ASSERT(pool && !pool->parent); /* must be root */ in deMemPool_getMaxCapacity()