summaryrefslogtreecommitdiff
path: root/src/cachemanager.h
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2015-04-11 11:19:42 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2015-04-11 11:19:42 +0200
commit3742ac29b3ab8b39b3c8cb820ed988b553de27bb (patch)
treec0bd9b64dec92e8179f94d4feb0a2d3dcac0e9b8 /src/cachemanager.h
parentc03a0668977fd86d34d76bbac11027bec07c119e (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;