Lines Matching defs:pGroup

50373   PGroup *pGroup;                     /* PGroup this cache belongs to */
50374 unsigned int *pnPurgeable; /* Pointer to pGroup->nPurgeable */
50627 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
50639 assert( pCache->pGroup==&pcache1.grp );
50640 pcache1LeaveMutex(pCache->pGroup);
50656 pcache1EnterMutex(pCache->pGroup);
50679 assert( sqlite3_mutex_held(p->pCache->pGroup->mutex) );
50748 assert( sqlite3_mutex_held(p->pGroup->mutex) );
50755 pcache1LeaveMutex(p->pGroup);
50759 pcache1EnterMutex(p->pGroup);
50789 assert( sqlite3_mutex_held(pPage->pCache->pGroup->mutex) );
50796 assert( pPage->pCache->pGroup->lru.isAnchor==1 );
50814 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
50828 PGroup *pGroup = pCache->pGroup;
50830 assert( sqlite3_mutex_held(pGroup->mutex) );
50831 while( pGroup->nPurgeable>pGroup->nMaxPage
50832 && (p=pGroup->lru.pLruPrev)->isAnchor==0
50834 assert( p->pCache->pGroup==pGroup );
50858 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
50972 PGroup *pGroup; /* The group the new page cache will belong to */
50982 pGroup = (PGroup*)&pCache[1];
50983 pGroup->mxPinned = 10;
50985 pGroup = &pcache1.grp;
50987 pcache1EnterMutex(pGroup);
50988 if( pGroup->lru.isAnchor==0 ){
50989 pGroup->lru.isAnchor = 1;
50990 pGroup->lru.pLruPrev = pGroup->lru.pLruNext = &pGroup->lru;
50992 pCache->pGroup = pGroup;
51000 pGroup->nMinPage += pCache->nMin;
51001 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
51002 pCache->pnPurgeable = &pGroup->nPurgeable;
51006 pcache1LeaveMutex(pGroup);
51023 PGroup *pGroup = pCache->pGroup;
51024 pcache1EnterMutex(pGroup);
51025 pGroup->nMaxPage += (nMax - pCache->nMax);
51026 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
51030 pcache1LeaveMutex(pGroup);
51042 PGroup *pGroup = pCache->pGroup;
51044 pcache1EnterMutex(pGroup);
51045 savedMaxPage = pGroup->nMaxPage;
51046 pGroup->nMaxPage = 0;
51048 pGroup->nMaxPage = savedMaxPage;
51049 pcache1LeaveMutex(pGroup);
51059 pcache1EnterMutex(pCache->pGroup);
51061 pcache1LeaveMutex(pCache->pGroup);
51080 PGroup *pGroup = pCache->pGroup;
51086 assert( pGroup->mxPinned == pGroup->nMaxPage + 10 - pGroup->nMinPage );
51089 nPinned>=pGroup->mxPinned
51101 && !pGroup->lru.pLruPrev->isAnchor
51105 pPage = pGroup->lru.pLruPrev;
51114 pGroup->nPurgeable -= (pOther->bPurgeable - pCache->bPurgeable);
51199 ** the common case where pGroup->mutex is NULL. The pcache1Fetch() wrapper
51240 pcache1EnterMutex(pCache->pGroup);
51243 pcache1LeaveMutex(pCache->pGroup);
51263 if( pCache->pGroup->mutex ){
51285 PGroup *pGroup = pCache->pGroup;
51288 pcache1EnterMutex(pGroup);
51296 if( reuseUnlikely || pGroup->nPurgeable>pGroup->nMaxPage ){
51300 PgHdr1 **ppFirst = &pGroup->lru.pLruNext;
51301 pPage->pLruPrev = &pGroup->lru;
51307 pcache1LeaveMutex(pCache->pGroup);
51326 pcache1EnterMutex(pCache->pGroup);
51343 pcache1LeaveMutex(pCache->pGroup);
51355 pcache1EnterMutex(pCache->pGroup);
51360 pcache1LeaveMutex(pCache->pGroup);
51370 PGroup *pGroup = pCache->pGroup;
51372 pcache1EnterMutex(pGroup);
51374 assert( pGroup->nMaxPage >= pCache->nMax );
51375 pGroup->nMaxPage -= pCache->nMax;
51376 assert( pGroup->nMinPage >= pCache->nMin );
51377 pGroup->nMinPage -= pCache->nMin;
51378 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
51380 pcache1LeaveMutex(pGroup);