mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-19 12:49:06 +02:00
fixing NullEvent usage
This commit is contained in:
parent
37dc590bdf
commit
ad543acb58
@ -65,7 +65,7 @@ class AccessExpireCache: public AbstractCache<TKey, TValue, AccessExpireStrategy
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccessExpireCache(Timestamp::TimeDiff expire = 600000):
|
AccessExpireCache(Timestamp::TimeDiff expire = 600000):
|
||||||
AbstractCache<TKey, TValue, AccessExpireStrategy<TKey, TValue> >(AccessExpireStrategy<TKey, TValue>(expire))
|
AbstractCache<TKey, TValue, AccessExpireStrategy<TKey, TValue>, TMutex, TEventMutex>(AccessExpireStrategy<TKey, TValue>(expire))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ class AccessExpireLRUCache: public AbstractCache<TKey, TValue, StrategyCollectio
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccessExpireLRUCache(long cacheSize = 1024, Timestamp::TimeDiff expire = 600000):
|
AccessExpireLRUCache(long cacheSize = 1024, Timestamp::TimeDiff expire = 600000):
|
||||||
AbstractCache<TKey, TValue, StrategyCollection<TKey, TValue> >(StrategyCollection<TKey, TValue>())
|
AbstractCache<TKey, TValue, StrategyCollection<TKey, TValue>, TMutex, TEventMutex>(StrategyCollection<TKey, TValue>())
|
||||||
{
|
{
|
||||||
this->_strategy.pushBack(new LRUStrategy<TKey, TValue>(cacheSize));
|
this->_strategy.pushBack(new LRUStrategy<TKey, TValue>(cacheSize));
|
||||||
this->_strategy.pushBack(new AccessExpireStrategy<TKey, TValue>(expire));
|
this->_strategy.pushBack(new AccessExpireStrategy<TKey, TValue>(expire));
|
||||||
|
@ -67,7 +67,7 @@ class ExpireCache: public AbstractCache<TKey, TValue, ExpireStrategy<TKey, TValu
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ExpireCache(Timestamp::TimeDiff expire = 600000):
|
ExpireCache(Timestamp::TimeDiff expire = 600000):
|
||||||
AbstractCache<TKey, TValue, ExpireStrategy<TKey, TValue> >(ExpireStrategy<TKey, TValue>(expire))
|
AbstractCache<TKey, TValue, ExpireStrategy<TKey, TValue>, TMutex, TEventMutex>(ExpireStrategy<TKey, TValue>(expire))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ class ExpireLRUCache: public AbstractCache<TKey, TValue, StrategyCollection<TKey
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ExpireLRUCache(long cacheSize = 1024, Timestamp::TimeDiff expire = 600000):
|
ExpireLRUCache(long cacheSize = 1024, Timestamp::TimeDiff expire = 600000):
|
||||||
AbstractCache<TKey, TValue, StrategyCollection<TKey, TValue> >(StrategyCollection<TKey, TValue>())
|
AbstractCache<TKey, TValue, StrategyCollection<TKey, TValue>, TMutex, TEventMutex>(StrategyCollection<TKey, TValue>())
|
||||||
{
|
{
|
||||||
this->_strategy.pushBack(new LRUStrategy<TKey, TValue>(cacheSize));
|
this->_strategy.pushBack(new LRUStrategy<TKey, TValue>(cacheSize));
|
||||||
this->_strategy.pushBack(new ExpireStrategy<TKey, TValue>(expire));
|
this->_strategy.pushBack(new ExpireStrategy<TKey, TValue>(expire));
|
||||||
|
@ -58,7 +58,7 @@ class LRUCache: public AbstractCache<TKey, TValue, LRUStrategy<TKey, TValue>, TM
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LRUCache(long size = 1024):
|
LRUCache(long size = 1024):
|
||||||
AbstractCache<TKey, TValue, LRUStrategy<TKey, TValue> >(LRUStrategy<TKey, TValue>(size))
|
AbstractCache<TKey, TValue, LRUStrategy<TKey, TValue>, TMutex, TEventMutex>(LRUStrategy<TKey, TValue>(size))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ class UniqueAccessExpireCache: public AbstractCache<TKey, TValue, UniqueAccessEx
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
UniqueAccessExpireCache():
|
UniqueAccessExpireCache():
|
||||||
AbstractCache<TKey, TValue, UniqueAccessExpireStrategy<TKey, TValue> >(UniqueAccessExpireStrategy<TKey, TValue>())
|
AbstractCache<TKey, TValue, UniqueAccessExpireStrategy<TKey, TValue>, TMutex, TEventMutex>(UniqueAccessExpireStrategy<TKey, TValue>())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ class UniqueAccessExpireLRUCache: public AbstractCache<TKey, TValue, StrategyCol
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
UniqueAccessExpireLRUCache(long cacheSize = 1024):
|
UniqueAccessExpireLRUCache(long cacheSize = 1024):
|
||||||
AbstractCache<TKey, TValue, StrategyCollection<TKey, TValue> >(StrategyCollection<TKey, TValue>())
|
AbstractCache<TKey, TValue, StrategyCollection<TKey, TValue>, TMutex, TEventMutex>(StrategyCollection<TKey, TValue>())
|
||||||
{
|
{
|
||||||
this->_strategy.pushBack(new LRUStrategy<TKey, TValue>(cacheSize));
|
this->_strategy.pushBack(new LRUStrategy<TKey, TValue>(cacheSize));
|
||||||
this->_strategy.pushBack(new UniqueAccessExpireStrategy<TKey, TValue>());
|
this->_strategy.pushBack(new UniqueAccessExpireStrategy<TKey, TValue>());
|
||||||
|
@ -74,7 +74,7 @@ class UniqueExpireCache: public AbstractCache<TKey, TValue, UniqueExpireStrategy
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
UniqueExpireCache():
|
UniqueExpireCache():
|
||||||
AbstractCache<TKey, TValue, UniqueExpireStrategy<TKey, TValue> >(UniqueExpireStrategy<TKey, TValue>())
|
AbstractCache<TKey, TValue, UniqueExpireStrategy<TKey, TValue>, TMutex, TEventMutex>(UniqueExpireStrategy<TKey, TValue>())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ class UniqueExpireLRUCache: public AbstractCache<TKey, TValue, StrategyCollectio
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
UniqueExpireLRUCache(long cacheSize = 1024):
|
UniqueExpireLRUCache(long cacheSize = 1024):
|
||||||
AbstractCache<TKey, TValue, StrategyCollection<TKey, TValue> >(StrategyCollection<TKey, TValue>())
|
AbstractCache<TKey, TValue, StrategyCollection<TKey, TValue>, TMutex, TEventMutex>(StrategyCollection<TKey, TValue>())
|
||||||
{
|
{
|
||||||
this->_strategy.pushBack(new LRUStrategy<TKey, TValue>(cacheSize));
|
this->_strategy.pushBack(new LRUStrategy<TKey, TValue>(cacheSize));
|
||||||
this->_strategy.pushBack(new UniqueExpireStrategy<TKey, TValue>());
|
this->_strategy.pushBack(new UniqueExpireStrategy<TKey, TValue>());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user