Revision 88570136
Added LRU eviction to cache. Not tested yet.
mainbox/cache.h | ||
---|---|---|
2 | 2 |
#define CACHE_H |
3 | 3 |
|
4 | 4 |
#define CACHE_SIZE 256 |
5 |
#define CACHE_MAX_ENTRIES 160 |
|
5 | 6 |
|
6 | 7 |
typedef void (*cache_func)(unsigned int key); |
7 | 8 |
|
Also available in: Unified diff