diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2015-04-11 11:19:42 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2015-04-11 11:19:42 +0200 |
commit | 3742ac29b3ab8b39b3c8cb820ed988b553de27bb (patch) | |
tree | c0bd9b64dec92e8179f94d4feb0a2d3dcac0e9b8 /src/cachemanager.h | |
parent | c03a0668977fd86d34d76bbac11027bec07c119e (diff) |
Added pos to event_t. Fixed bufs.
Diffstat (limited to 'src/cachemanager.h')
-rw-r--r-- | src/cachemanager.h | 4 |
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; |