Skip to content

Commit

Permalink
forward declaration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 26, 2021
1 parent 0ba0ceb commit 14a20da
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/core/qgstilecache.cpp
Expand Up @@ -60,3 +60,15 @@ bool QgsTileCache::tile( const QUrl &url, QImage &image )
} }
return success; return success;
} }

int QgsTileCache::totalCost()
{
QMutexLocker locker( &sTileCacheMutex );
return sTileCache.totalCost();
}

int QgsTileCache::maxCost()
{
QMutexLocker locker( &sTileCacheMutex );
return sTileCache.maxCost();
}
4 changes: 2 additions & 2 deletions src/core/qgstilecache.h
Expand Up @@ -51,9 +51,9 @@ class CORE_EXPORT QgsTileCache
static bool tile( const QUrl &url, QImage &image ); static bool tile( const QUrl &url, QImage &image );


//! how many tiles are stored in the in-memory cache //! how many tiles are stored in the in-memory cache
static int totalCost() { QMutexLocker locker( &sTileCacheMutex ); return sTileCache.totalCost(); } static int totalCost();
//! how many tiles can be stored in the in-memory cache //! how many tiles can be stored in the in-memory cache
static int maxCost() { QMutexLocker locker( &sTileCacheMutex ); return sTileCache.maxCost(); } static int maxCost();


private: private:
//! in-memory cache //! in-memory cache
Expand Down

0 comments on commit 14a20da

Please sign in to comment.