• Home
  • Raw
  • Download

Lines Matching refs:pGroup

45272   PGroup *pGroup;                     /* PGroup this cache belongs to */
45522 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
45533 assert( pCache->pGroup==&pcache1.grp );
45534 pcache1LeaveMutex(pCache->pGroup);
45551 pcache1EnterMutex(pCache->pGroup);
45560 pCache->pGroup->nCurrentPage++;
45572 assert( sqlite3_mutex_held(p->pCache->pGroup->mutex) );
45583 pCache->pGroup->nCurrentPage--;
45642 assert( sqlite3_mutex_held(p->pGroup->mutex) );
45649 pcache1LeaveMutex(p->pGroup);
45653 pcache1EnterMutex(p->pGroup);
45686 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
45693 assert( pCache->pGroup->lru.isAnchor==1 );
45711 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
45725 PGroup *pGroup = pCache->pGroup;
45727 assert( sqlite3_mutex_held(pGroup->mutex) );
45728 while( pGroup->nCurrentPage>pGroup->nMaxPage
45729 && (p=pGroup->lru.pLruPrev)->isAnchor==0
45731 assert( p->pCache->pGroup==pGroup );
45755 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
45869 PGroup *pGroup; /* The group the new page cache will belong to */
45879 pGroup = (PGroup*)&pCache[1];
45880 pGroup->mxPinned = 10;
45882 pGroup = &pcache1.grp;
45884 if( pGroup->lru.isAnchor==0 ){
45885 pGroup->lru.isAnchor = 1;
45886 pGroup->lru.pLruPrev = pGroup->lru.pLruNext = &pGroup->lru;
45888 pCache->pGroup = pGroup;
45893 pcache1EnterMutex(pGroup);
45897 pGroup->nMinPage += pCache->nMin;
45898 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
45900 pcache1LeaveMutex(pGroup);
45917 PGroup *pGroup = pCache->pGroup;
45918 pcache1EnterMutex(pGroup);
45919 pGroup->nMaxPage += (nMax - pCache->nMax);
45920 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
45924 pcache1LeaveMutex(pGroup);
45936 PGroup *pGroup = pCache->pGroup;
45938 pcache1EnterMutex(pGroup);
45939 savedMaxPage = pGroup->nMaxPage;
45940 pGroup->nMaxPage = 0;
45942 pGroup->nMaxPage = savedMaxPage;
45943 pcache1LeaveMutex(pGroup);
45953 pcache1EnterMutex(pCache->pGroup);
45955 pcache1LeaveMutex(pCache->pGroup);
45974 PGroup *pGroup = pCache->pGroup;
45980 assert( pGroup->mxPinned == pGroup->nMaxPage + 10 - pGroup->nMinPage );
45983 nPinned>=pGroup->mxPinned
45995 && !pGroup->lru.pLruPrev->isAnchor
45999 pPage = pGroup->lru.pLruPrev;
46008 pGroup->nCurrentPage -= (pOther->bPurgeable - pCache->bPurgeable);
46134 pcache1EnterMutex(pCache->pGroup);
46137 pcache1LeaveMutex(pCache->pGroup);
46157 if( pCache->pGroup->mutex ){
46179 PGroup *pGroup = pCache->pGroup;
46182 pcache1EnterMutex(pGroup);
46190 if( reuseUnlikely || pGroup->nCurrentPage>pGroup->nMaxPage ){
46194 PgHdr1 **ppFirst = &pGroup->lru.pLruNext;
46195 pPage->pLruPrev = &pGroup->lru;
46202 pcache1LeaveMutex(pCache->pGroup);
46221 pcache1EnterMutex(pCache->pGroup);
46238 pcache1LeaveMutex(pCache->pGroup);
46250 pcache1EnterMutex(pCache->pGroup);
46255 pcache1LeaveMutex(pCache->pGroup);
46265 PGroup *pGroup = pCache->pGroup;
46267 pcache1EnterMutex(pGroup);
46269 assert( pGroup->nMaxPage >= pCache->nMax );
46270 pGroup->nMaxPage -= pCache->nMax;
46271 assert( pGroup->nMinPage >= pCache->nMin );
46272 pGroup->nMinPage -= pCache->nMin;
46273 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
46275 pcache1LeaveMutex(pGroup);