Lines Matching refs:pGroup
57865 PGroup *pGroup; /* PGroup this cache belongs to */ member
58118 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
58130 assert( pCache->pGroup==&pcache1.grp );
58131 pcache1LeaveMutex(pCache->pGroup);
58137 pcache1EnterMutex(pCache->pGroup);
58159 assert( sqlite3_mutex_held(p->pCache->pGroup->mutex) );
58225 assert( sqlite3_mutex_held(p->pGroup->mutex) );
58232 pcache1LeaveMutex(p->pGroup);
58236 pcache1EnterMutex(p->pGroup);
58266 assert( sqlite3_mutex_held(pPage->pCache->pGroup->mutex) );
58273 assert( pPage->pCache->pGroup->lru.isAnchor==1 );
58291 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
58305 PGroup *pGroup = pCache->pGroup; local
58307 assert( sqlite3_mutex_held(pGroup->mutex) );
58308 while( pGroup->nPurgeable>pGroup->nMaxPage
58309 && (p=pGroup->lru.pLruPrev)->isAnchor==0
58311 assert( p->pCache->pGroup==pGroup );
58335 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
58449 PGroup *pGroup; /* The group the new page cache will belong to */ local
58459 pGroup = (PGroup*)&pCache[1];
58460 pGroup->mxPinned = 10;
58462 pGroup = &pcache1.grp;
58464 pcache1EnterMutex(pGroup);
58465 if( pGroup->lru.isAnchor==0 ){
58466 pGroup->lru.isAnchor = 1;
58467 pGroup->lru.pLruPrev = pGroup->lru.pLruNext = &pGroup->lru;
58469 pCache->pGroup = pGroup;
58477 pGroup->nMinPage += pCache->nMin;
58478 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
58479 pCache->pnPurgeable = &pGroup->nPurgeable;
58483 pcache1LeaveMutex(pGroup);
58502 PGroup *pGroup = pCache->pGroup; local
58503 pcache1EnterMutex(pGroup);
58505 if( n > 0x7fff0000 - pGroup->nMaxPage + pCache->nMax ){
58506 n = 0x7fff0000 - pGroup->nMaxPage + pCache->nMax;
58508 pGroup->nMaxPage += (n - pCache->nMax);
58509 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
58513 pcache1LeaveMutex(pGroup);
58525 PGroup *pGroup = pCache->pGroup; local
58527 pcache1EnterMutex(pGroup);
58528 savedMaxPage = pGroup->nMaxPage;
58529 pGroup->nMaxPage = 0;
58531 pGroup->nMaxPage = savedMaxPage;
58532 pcache1LeaveMutex(pGroup);
58542 pcache1EnterMutex(pCache->pGroup);
58544 pcache1LeaveMutex(pCache->pGroup);
58563 PGroup *pGroup = pCache->pGroup; local
58569 assert( pGroup->mxPinned == pGroup->nMaxPage + 10 - pGroup->nMinPage );
58572 nPinned>=pGroup->mxPinned
58584 && !pGroup->lru.pLruPrev->isAnchor
58588 pPage = pGroup->lru.pLruPrev;
58597 pGroup->nPurgeable -= (pOther->bPurgeable - pCache->bPurgeable);
58723 pcache1EnterMutex(pCache->pGroup);
58726 pcache1LeaveMutex(pCache->pGroup);
58746 if( pCache->pGroup->mutex ){
58768 PGroup *pGroup = pCache->pGroup; local
58771 pcache1EnterMutex(pGroup);
58779 if( reuseUnlikely || pGroup->nPurgeable>pGroup->nMaxPage ){
58783 PgHdr1 **ppFirst = &pGroup->lru.pLruNext;
58784 pPage->pLruPrev = &pGroup->lru;
58790 pcache1LeaveMutex(pCache->pGroup);
58810 pcache1EnterMutex(pCache->pGroup);
58829 pcache1LeaveMutex(pCache->pGroup);
58841 pcache1EnterMutex(pCache->pGroup);
58846 pcache1LeaveMutex(pCache->pGroup);
58856 PGroup *pGroup = pCache->pGroup; local
58858 pcache1EnterMutex(pGroup);
58860 assert( pGroup->nMaxPage >= pCache->nMax );
58861 pGroup->nMaxPage -= pCache->nMax;
58862 assert( pGroup->nMinPage >= pCache->nMin );
58863 pGroup->nMinPage -= pCache->nMin;
58864 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
58866 pcache1LeaveMutex(pGroup);