]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/FGTileLoader.hxx
Tile pager tweaks.
[flightgear.git] / src / Scenery / FGTileLoader.hxx
index 258232a52bc516dfcd71dbd4e81c20090c7bcd6c..91ecb82df74b4913d4d97664399491665f5e5bbd 100644 (file)
@@ -54,17 +54,26 @@ public:
      */
     ~FGTileLoader();
 
+    /**
+     * Flush anything in pending load queue without doing the work
+     * Leave the free queue intact since that's are only record of
+     * things we need to remove.
+     */
+    void reinit();
+    
     /**
      * Add a tile to the end of the load queue.
      * @param tile The tile to be loaded from disk.
      */
     void add( FGTileEntry* tile );
 
+#ifdef WISH_PLIB_WAS_THREADED // but it isn't
     /**
      * Remove a tile from memory.
      * @param tile The tile to be removed from memory.
      */
     void remove( FGTileEntry* tile );
+#endif
 
     /**
      * The tile loader thread will only load one tile per call to the
@@ -89,10 +98,10 @@ private:
      * FIFO queue of tiles to load from data files.
      */
     SGBlockingQueue< FGTileEntry * > tile_load_queue;
-    SGBlockingQueue< FGTileEntry * > tile_free_queue;
+    // SGBlockingQueue< FGTileEntry * > tile_free_queue;
 #else
     queue< FGTileEntry * > tile_load_queue;
-    queue< FGTileEntry * > tile_free_queue;
+    // queue< FGTileEntry * > tile_free_queue;
 #endif
 
     /**