#include <reuse_resource_cache.h>
Public Types | |
using | RESTYPE = HashMap< KEY, BaseArray< ReuseData< DATA > >> |
Public Member Functions | |
ReuseResourceTemplate () | |
Result< void > | AddToReuseList (const KEY &hashKey, ReuseData< DATA > &&reuseData) |
Bool | Find (const KEY &key, DATA &resource) |
void | Free (const Delegate< void(RESTYPE &resources)> &freeCallback) |
Private Attributes | |
Spinlock | _lock |
RESTYPE | _resources |
JobQueueRef | _timerQueue |
ThreadSafeRef< TimerRef > | _timer |
Bool | _inShutdown |
Bool Find | ( | const KEY & | key, |
DATA & | resource | ||
) |
|
private |
|
private |
|
private |
|
private |
|
private |