• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/Heimdal-398.1.2/lib/sqlite/

Lines Matching defs:pGroup

35904   PGroup *pGroup;                     /* PGroup this cache belongs to */
36148 ** from the pGroup->pBlockList list and free it with sqlite3_free().
36150 static void freeListIfEmpty(PGroup *pGroup, PGroupBlockList *pList){
36151 assert( sqlite3_mutex_held(pGroup->mutex) );
36154 for(pp=&pGroup->pBlockList; *pp!=pList; pp=&(*pp)->pNext);
36170 PGroup *pGroup = pCache->pGroup;
36178 for(pList=pGroup->pBlockList; pList; pList=pList->pNext){
36183 assert( pGroup->isBusy==0 );
36184 assert( sqlite3_mutex_held(pGroup->mutex) );
36185 pGroup->isBusy = 1; /* Disable sqlite3PcacheReleaseMemory() */
36187 pGroup->isBusy = 0; /* Reenable sqlite3PcacheReleaseMemory() */
36193 for(pList=pGroup->pBlockList; pList; pList=pList->pNext){
36198 pNew->pNext = pGroup->pBlockList;
36199 pGroup->pBlockList = pNew;
36211 assert( sqlite3_mutex_held(pGroup->mutex) );
36212 pcache1LeaveMutex(pCache->pGroup);
36215 pcache1EnterMutex(pCache->pGroup);
36218 freeListIfEmpty(pGroup, pList);
36259 pCache->pGroup->nCurrentPage++;
36265 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
36266 pcache1LeaveMutex(pCache->pGroup);
36268 pcache1EnterMutex(pCache->pGroup);
36272 pCache->pGroup->nCurrentPage++;
36319 PGroup *pGroup = p->pCache->pGroup;
36325 freeListIfEmpty(pGroup, pList);
36331 assert( sqlite3_mutex_held(p->pCache->pGroup->mutex) );
36335 pCache->pGroup->nCurrentPage--;
36395 assert( sqlite3_mutex_held(p->pGroup->mutex) );
36402 pcache1LeaveMutex(p->pGroup);
36406 pcache1EnterMutex(p->pGroup);
36438 PGroup *pGroup;
36442 pGroup = pCache->pGroup;
36443 assert( sqlite3_mutex_held(pGroup->mutex) );
36444 if( pPage->pLruNext || pPage==pGroup->pLruTail ){
36451 if( pGroup->pLruHead==pPage ){
36452 pGroup->pLruHead = pPage->pLruNext;
36454 if( pGroup->pLruTail==pPage ){
36455 pGroup->pLruTail = pPage->pLruPrev;
36475 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
36487 static void pcache1EnforceMaxPage(PGroup *pGroup){
36488 assert( sqlite3_mutex_held(pGroup->mutex) );
36489 while( pGroup->nCurrentPage>pGroup->nMaxPage && pGroup->pLruTail ){
36490 PgHdr1 *p = pGroup->pLruTail;
36491 assert( p->pCache->pGroup==pGroup );
36511 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
36567 PGroup *pGroup; /* The group the new page cache will belong to */
36593 pGroup = (PGroup*)&pCache[1];
36594 pGroup->mxPinned = 10;
36596 pGroup = &pcache1.grp;
36598 pCache->pGroup = pGroup;
36603 pcache1EnterMutex(pGroup);
36604 pGroup->nMinPage += pCache->nMin;
36605 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
36606 pcache1LeaveMutex(pGroup);
36620 PGroup *pGroup = pCache->pGroup;
36621 pcache1EnterMutex(pGroup);
36622 pGroup->nMaxPage += (nMax - pCache->nMax);
36623 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
36626 pcache1EnforceMaxPage(pGroup);
36627 pcache1LeaveMutex(pGroup);
36637 pcache1EnterMutex(pCache->pGroup);
36639 pcache1LeaveMutex(pCache->pGroup);
36700 PGroup *pGroup;
36707 pcache1EnterMutex(pGroup = pCache->pGroup);
36721 /* The pGroup local variable will normally be initialized by the
36724 ** local variable here. Delaying the initialization of pGroup is an
36729 pGroup = pCache->pGroup;
36736 assert( pGroup->mxPinned == pGroup->nMaxPage + 10 - pGroup->nMinPage );
36739 nPinned>=pGroup->mxPinned
36751 if( pCache->bPurgeable && pGroup->pLruTail && (
36753 || pGroup->nCurrentPage>=pGroup->nMaxPage
36757 pPage = pGroup->pLruTail;
36764 pGroup->nCurrentPage -=
36794 pcache1LeaveMutex(pGroup);
36807 PGroup *pGroup = pCache->pGroup;
36810 pcache1EnterMutex(pGroup);
36816 assert( pGroup->pLruHead!=pPage && pGroup->pLruTail!=pPage );
36818 if( reuseUnlikely || pGroup->nCurrentPage>pGroup->nMaxPage ){
36823 if( pGroup->pLruHead ){
36824 pGroup->pLruHead->pLruPrev = pPage;
36825 pPage->pLruNext = pGroup->pLruHead;
36826 pGroup->pLruHead = pPage;
36828 pGroup->pLruTail = pPage;
36829 pGroup->pLruHead = pPage;
36834 pcache1LeaveMutex(pCache->pGroup);
36853 pcache1EnterMutex(pCache->pGroup);
36870 pcache1LeaveMutex(pCache->pGroup);
36882 pcache1EnterMutex(pCache->pGroup);
36887 pcache1LeaveMutex(pCache->pGroup);
36897 PGroup *pGroup = pCache->pGroup;
36899 pcache1EnterMutex(pGroup);
36901 pGroup->nMaxPage -= pCache->nMax;
36902 pGroup->nMinPage -= pCache->nMin;
36903 pGroup->mxPinned = pGroup->nMaxPage + 10 - pGroup->nMinPage;
36904 pcache1EnforceMaxPage(pGroup);
36905 pcache1LeaveMutex(pGroup);