Logo Search packages:      
Sourcecode: gaia version File versions  Download package

SimpleTileStorage Class Reference

#include <SimpleTileStorage.h>

Inheritance diagram for SimpleTileStorage:

TileStorage FilesystemStorage WorldWindFetcher

List of all members.

Detailed Description

Base class for tile storages with queue and one working thread;

should be restructured

Definition at line 35 of file SimpleTileStorage.h.

Public Member Functions

void Detach ()
void Enqueue (TilePtr tile)
void SetNextLoadStorage (TileStorage *ts)
void SetSaveStorage (TileStorage *ts)
 SimpleTileStorage ()
virtual ~SimpleTileStorage ()

Protected Member Functions

virtual void Process (TilePtr tile)=0

Protected Attributes

 Storage to pass tile to for loading, if we couldn't load it.
 Storage to pass tile to for saving.

Private Member Functions

void ThreadRun ()

Static Private Member Functions

static void * ThreadEntryPoint (void *pthis)

Private Attributes

std::queue< TilePtrm_Queue
 Queue of tiles waiting to be saved/loaded with this storage.
pthread_cond_t m_QueueEmptyCond
 Condition to wake up thread after sleep.
pthread_mutex_t m_QueueMutex
 Mutex to protect queue.
pthread_t m_Thread
 Thread in which all actual loading/saving goes asynchronously.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index