Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_lock_free_cache.h
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | |||||
112 | 112 | | |||
113 | template <typename T> | 113 | template <typename T> | ||
114 | class KisLockFreeCache | 114 | class KisLockFreeCache | ||
115 | { | 115 | { | ||
116 | public: | 116 | public: | ||
117 | virtual ~KisLockFreeCache() {} | 117 | virtual ~KisLockFreeCache() {} | ||
118 | 118 | | |||
119 | /** | 119 | /** | ||
120 | * Notify the chache that the value has changed | 120 | * Notify the cache that the value has changed | ||
121 | */ | 121 | */ | ||
122 | void invalidate() { | 122 | void invalidate() { | ||
123 | m_state.invalidate(); | 123 | m_state.invalidate(); | ||
124 | } | 124 | } | ||
125 | 125 | | |||
126 | /** | 126 | /** | ||
127 | * Calculate the value or fetch it from the cache | 127 | * Calculate the value or fetch it from the cache | ||
128 | */ | 128 | */ | ||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |