From 9de4960af81d2d7a142b7b57e3e3914a9144f516 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 23 Dec 2015 16:55:23 +0000 Subject: Add missing visibility attributes in cache --- libadhocutil/cache.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libadhocutil/cache.h b/libadhocutil/cache.h index ff899dc..06d4d5a 100644 --- a/libadhocutil/cache.h +++ b/libadhocutil/cache.h @@ -9,12 +9,13 @@ #include #include #include +#include "visibility.h" namespace AdHoc { /// @cond template -class Cacheable { +class DLL_PUBLIC Cacheable { public: Cacheable(const K & k, time_t validUntil); @@ -25,7 +26,7 @@ class Cacheable { }; template -class ObjectCacheable : public Cacheable { +class DLL_PUBLIC ObjectCacheable : public Cacheable { public: ObjectCacheable(const T & t, const K & k, time_t validUtil); @@ -36,7 +37,7 @@ class ObjectCacheable : public Cacheable { }; template -class CallCacheable : public Cacheable { +class DLL_PUBLIC CallCacheable : public Cacheable { public: CallCacheable(const T & t, const K & k, time_t validUtil); CallCacheable(const boost::function & t, const K & k, time_t validUtil); @@ -54,7 +55,7 @@ struct byKey {}; /// In-memory cache of T, keyed by K. template -class Cache { +class DLL_PUBLIC Cache { public: /// @cond typedef K Key; @@ -93,7 +94,7 @@ class Cache { size_t size() const; private: - void prune() const; + void DLL_PRIVATE prune() const; mutable time_t lastPruneTime; mutable boost::shared_mutex lock; -- cgit v1.2.3