Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Helper macros

GETRAMFREE()

     // Choose cache size based on free memory 
                
                GETRAMFREE(&dwTotal,NULL);
                if (dwTotal < (250 * 1024)) {
                pri->nCachedFiles = 12;
                } else {
                pri->nCachedFiles = 24;
                }
                }
            

UNLOCKMEM()

  // Mark block as moveable
                
                UNLOCKMEM((void **)&pme->pCache);
            

LOCKMEM()

   // Mark block as unmoveable in preparation to access it
                
                LOCKMEM((void **)&pme->pCache);