#include <simgear/bucket/newbucket.hxx>
#include <simgear/misc/sg_path.hxx>
-#ifdef ENABLE_THREADS
+#if defined(ENABLE_THREADS) && ENABLE_THREADS
# include <simgear/threads/SGThread.hxx>
# include <simgear/threads/SGQueue.hxx>
#else
# include <queue>
+ SG_USING_STD( queue );
#endif
+
// Forward reference.
class FGTileEntry;
private:
-#ifdef ENABLE_THREADS
+#if defined(ENABLE_THREADS) && ENABLE_THREADS
/**
* FIFO queue of tiles to load from data files.
*/
#endif
/**
- * Base name of directory containing tile data file.
+ * Base names of directories containing tile data files.
*/
- SGPath tile_path;
+ string_list tile_path;
-#ifdef ENABLE_THREADS
+#if defined(ENABLE_THREADS) && ENABLE_THREADS
/**
* Maximum number of threads to create for loading tiles.
*/
* Lock and synchronize access to tile queue.
*/
SGMutex mutex;
- SGCondition frame_cond;
+ SGPthreadCond frame_cond;
/**
* Thread cleanup handler.