summaryrefslogtreecommitdiff
path: root/src/cachemanager.h
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2015-04-11 11:19:42 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-20 13:22:09 +0100
commita91513d1111f13c18ec96505bbb2c3c6ed4db9d6 (patch)
treed9286145f4f42ee0924ecb56dc4df16e162008fd /src/cachemanager.h
parentd718be39fb3892ab94deddc4ad543c5682484c6d (diff)
Added pos to event_t. Fixed bufs.
Diffstat (limited to 'src/cachemanager.h')
-rw-r--r--src/cachemanager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cachemanager.h b/src/cachemanager.h
index 19749a7..264f644 100644
--- a/src/cachemanager.h
+++ b/src/cachemanager.h
@@ -101,12 +101,14 @@ private:
typedef struct {
bool active;
cacheid_t id;
+ size_t pos;
cmd_t cmd;
} event_t;
- CacheManager::event_t createEvent(cacheid_t id, cmd_t type);
+ CacheManager::event_t createLoadNextEvent(cacheid_t id, size_t pos, cmd_t type);
void loadNext(cacheid_t id);
void pushEvent(event_t e);
+ const cache_t getNextCache(cacheid_t id);
// Protected by mutex
std::list<event_t> eventqueue;