Definition at line 248 of file ImageCache.h. References ILOG_DEBUG, mCacheSize, mImages, mLRU, and mSource. Referenced by ImageCache(). 00249 { 00250 mCacheSize = size; 00251 ILOG_DEBUG("Initializing image cache for "<< mCacheSize <<" OGLIMAGEs"); 00252 00253 #ifdef USE_BOOST_THREADS 00254 mEmptyArray = Core::Array::ArrayCreate<Core::Array::Array2dVec3UInt8>(0, 0, 0, 0); 00255 mThreadPool = new boost::threadpool::pool(); 00256 mThreadPool->size_controller().resize(8); 00257 mActiveTasks = false; 00258 #endif 00259 00260 mSource = source; 00261 00262 for (int i=0; i<mCacheSize; i++) 00263 { 00264 mImages.push_back(new ImageWithID(-1, 0)); 00265 mLRU.push_back(i); 00266 } 00267 }
|